miso
Copyright(C) 2016-2026 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Native.Element.View.Event

Description

 
Synopsis

Events

onTouchStart :: (TouchEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#touchstart

It belongs to touch event, which is triggered when the finger starts to touch the touch surface.

@ data Action = HandleTouch TouchEvent

view model = view_ [ onTouchStart HandleTouch ]

update :: Action -> Effect props Model Action update (HandleTouch TouchEvent {..}) = do io_ (consoleLog "touch event received")

onTouchStartWith :: (TouchEvent -> DOMRef -> action) -> Attribute model action Source #

Like onTouchStart, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onTouchStartMain :: (TouchEvent -> action) -> EventHandler model action Source #

Like onTouchStart, but dispatched on the Lynx main thread (MTS).

data Action = HandleTouch TouchEvent

view_ [ event (static (onTouchStartMain HandleTouch)) ] [ "some view" ]

onTouchStartMainWith :: (TouchEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onTouchStartMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleTouch TouchEvent Model DOMRef

view_ [ event (static (onTouchStartMainWith HandleTouch)) ] [ "some view" ]

onTouchMove :: (TouchEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#touchmove

It belongs to touch event, which is triggered when the finger moves on the touch surface.

data Action = HandleTouch TouchEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onTouchMove HandleTouch ]

update :: Action -> Effect context props Model Action
update (HandleTouch TouchEvent {..}) = do
  io_ (consoleLog "touch event received")

onTouchMoveWith :: (TouchEvent -> DOMRef -> action) -> Attribute model action Source #

Like onTouchMove, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onTouchMoveMain :: (TouchEvent -> action) -> EventHandler model action Source #

Like onTouchMove, but dispatched on the Lynx main thread (MTS).

data Action = HandleTouch TouchEvent

view_ [ event (static (onTouchMoveMain HandleTouch)) ] [ "some view" ]

onTouchMoveMainWith :: (TouchEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onTouchMoveMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleTouch TouchEvent Model DOMRef

view_ [ event (static (onTouchMoveMainWith HandleTouch)) ] [ "some view" ]

onTouchEnd :: (TouchEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#touchend

It belongs to touch event, which is triggered when the finger leaves the touch surface.

data Action = HandleTouch TouchEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onTouchEnd HandleTouch ]

update :: Action -> Effect context props Model Action
update (HandleTouch TouchEvent {..}) = do
  io_ (consoleLog "touch event received")

onTouchEndWith :: (TouchEvent -> DOMRef -> action) -> Attribute model action Source #

Like onTouchEnd, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onTouchEndMain :: (TouchEvent -> action) -> EventHandler model action Source #

Like onTouchEnd, but dispatched on the Lynx main thread (MTS).

data Action = HandleTouch TouchEvent

view_ [ event (static (onTouchEndMain HandleTouch)) ] [ "some view" ]

onTouchEndMainWith :: (TouchEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onTouchEndMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleTouch TouchEvent Model DOMRef

view_ [ event (static (onTouchEndMainWith HandleTouch)) ] [ "some view" ]

onTouchCancel :: (TouchEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#touchcancel

It belongs to touch event, which is triggered when the touch event, is interrupted by the system or Lynx external gesture.

data Action = HandleTouch TouchEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onTouchCancel HandleTouch ]

update :: Action -> Effect context props Model Action
update (HandleTouch TouchEvent {..}) =
  io_ (consoleLog "touch event received")

onTouchCancelWith :: (TouchEvent -> DOMRef -> action) -> Attribute model action Source #

Like onTouchCancel, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onTouchCancelMain :: (TouchEvent -> action) -> EventHandler model action Source #

Like onTouchCancel, but dispatched on the Lynx main thread (MTS).

data Action = HandleTouch TouchEvent

view_ [ event (static (onTouchCancelMain HandleTouch)) ] [ "some view" ]

onTouchCancelMainWith :: (TouchEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onTouchCancelMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleTouch TouchEvent Model DOMRef

view_ [ event (static (onTouchCancelMainWith HandleTouch)) ] [ "some view" ]

onTap :: action -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#tap

It belongs to touch event, which is triggered when the finger clicks on the touch surface.

data Action = HandleTap

view :: context -> props -> Model -> View context Action
view model = view_ [ onTap HandleTap ]

update :: Action -> Effect context props Model Action
update HandleTap = io_ (consoleLog "touch event received")

onTapMain :: action -> EventHandler model action Source #

https://lynxjs.org/api/elements/built-in/view.html#tap

It belongs to touch event, which is triggered when the finger clicks on the touch surface.

Unlike onTap, onTapMain is necessary for handling tap events on the main thread (MTS).

data Action = HandleTap

view :: context -> props -> Model -> View context Action
view model = view_ [ event $ static (onTapMain HandleTap) ]

update :: Action -> Effect context props Model Action
update HandleTap = io_ (consoleLog "touch event received")

onTapWith :: (DOMRef -> action) -> Attribute model action Source #

Like onTap, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onTapMainWith :: (DOMRef -> action) -> EventHandler model action Source #

https://lynxjs.org/api/elements/built-in/view.html#tap

It belongs to touch event, which is triggered when the finger clicks on the touch surface.

Unlike onTap, onTapMain is necessary for handling tap events on the main thread (MTS).

data Action = HandleTap

view :: context -> props -> Model -> View context Action
view model = view_ [ event $ static (onTapMain HandleTap) ]

update :: Action -> Effect context props Model Action
update HandleTap = io_ (consoleLog "touch event received")

onTapMainModel :: (model -> action) -> EventHandler model action Source #

https://lynxjs.org/api/elements/built-in/view.html#tap

It belongs to touch event, which is triggered when the finger clicks on the touch surface.

Unlike onTap, onTapMain is necessary for handling tap events on the main thread (MTS).

data Action = HandleTap

view :: context -> props -> Model -> View context Action
view model = view_ [ event $ static (onTapMain HandleTap) ]

update :: Action -> Effect context props Model Action
update HandleTap = io_ (consoleLog "touch event received")

onLongPress :: (TouchEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#longpress

It belongs to the touch event, which is triggered when the finger is long pressed on the touch surface, and the interval between long press triggers is `500 ms`.

data Action = HandleTouch TouchEvent

view :: context -> props -> Model -> View context Action
view model = view_ [ onLongPress HandleTouch ]

update :: Action -> Effect context props Model Action
update (HandleTouch TouchEvent {..}) = io_ (consoleLog "touch event received")

onLongPressWith :: (TouchEvent -> DOMRef -> action) -> Attribute model action Source #

Like onLongPress, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onLongPressMain :: (TouchEvent -> action) -> EventHandler model action Source #

Like onLongPress, but dispatched on the Lynx main thread (MTS).

data Action = HandleTouch TouchEvent

view_ [ event (static (onLongPressMain HandleTouch)) ] [ "some view" ]

onLongPressMainWith :: (TouchEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onLongPressMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleTouch TouchEvent Model DOMRef

view_ [ event (static (onLongPressMainWith HandleTouch)) ] [ "some view" ]

onLayoutChange :: (LayoutChangeDetailEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#layoutchange

It belongs to a custom event, which is triggered when the target node layout is completed, and returns the position information of the target node relative to the LynxView viewport coordinate system.

data Action = HandleLayout LayoutChangeDetailEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onLayoutChange HandleLayout ]

update :: Action -> Effect context props Model Action
update (HandleLayout LayoutChangeDetailEvent {..}) =
  io_ (consoleLog "layout changed")

onLayoutChangeWith :: (LayoutChangeDetailEvent -> DOMRef -> action) -> Attribute model action Source #

Like onLayoutChange, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onLayoutChangeMain :: (LayoutChangeDetailEvent -> action) -> EventHandler model action Source #

Like onLayoutChange, but dispatched on the Lynx main thread (MTS).

data Action = HandleLayout LayoutChangeDetailEvent

view_ [ event (static (onLayoutChangeMain HandleLayout)) ] [ "some view" ]

onLayoutChangeMainWith :: (LayoutChangeDetailEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onLayoutChangeMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleLayout LayoutChangeDetailEvent Model DOMRef

view_ [ event (static (onLayoutChangeMainWith HandleLayout)) ] [ "some view" ]

onAppear :: (UIAppearanceDetailEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#uiappear

It belongs to custom event, which is triggered when the target node appears on the screen.

data Action = HandleUI UIAppearanceDetailEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onAppear HandleUI ]

update :: Action -> Effect context props Model Action
update (HandleUI UIAppearanceDetailEvent {..}) = do
  io_ (consoleLog "appearance detail event received")

onAppearWith :: (UIAppearanceDetailEvent -> DOMRef -> action) -> Attribute model action Source #

Like onAppear, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onAppearMain :: (UIAppearanceDetailEvent -> action) -> EventHandler model action Source #

Like onAppear, but dispatched on the Lynx main thread (MTS).

data Action = HandleAppear UIAppearanceDetailEvent

view_ [ event (static (onAppearMain HandleAppear)) ] [ "some view" ]

onAppearMainWith :: (UIAppearanceDetailEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onAppearMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleAppear UIAppearanceDetailEvent Model DOMRef

view_ [ event (static (onAppearMainWith HandleAppear)) ] [ "some view" ]

onDisappear :: (UIAppearanceDetailEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#uidisappear

It belongs to custom event, which is triggered when the target node appears on the screen.

data Action = HandleUI UIAppearanceDetailEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onDisappear HandleUI ]

update :: Action -> Effect props Model Action
update (HandleUI UIAppearanceDetailEvent {..}) = do
  io_ (consoleLog "appearance detail event received")

onDisappearWith :: (UIAppearanceDetailEvent -> DOMRef -> action) -> Attribute model action Source #

Like onDisappear, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onDisappearMain :: (UIAppearanceDetailEvent -> action) -> EventHandler model action Source #

Like onDisappear, but dispatched on the Lynx main thread (MTS).

data Action = HandleDisappear UIAppearanceDetailEvent

view_ [ event (static (onDisappearMain HandleDisappear)) ] [ "some view" ]

onDisappearMainWith :: (UIAppearanceDetailEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onDisappearMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleDisappear UIAppearanceDetailEvent Model DOMRef

view_ [ event (static (onDisappearMainWith HandleDisappear)) ] [ "some view" ]

onAnimationStart :: (AnimationEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#animationstart

It belongs to animation event, which is triggered when the Animation animation starts.

data Action = HandleAnimation AnimationEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onAnimationStart HandleAnimation ]

update :: Action -> Effect context props Model Action
update (HandleAnimation AnimationEvent {..}) =
  io_ (consoleLog "animation event received")

onAnimationStartWith :: (AnimationEvent -> DOMRef -> action) -> Attribute model action Source #

Like onAnimationStart, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onAnimationStartMain :: (AnimationEvent -> action) -> EventHandler model action Source #

Like onAnimationStart, but dispatched on the Lynx main thread (MTS).

data Action = HandleAnimation AnimationEvent

view_ [ event (static (onAnimationStartMain HandleAnimation)) ] [ "some view" ]

onAnimationStartMainWith :: (AnimationEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onAnimationStartMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleAnimation AnimationEvent Model DOMRef

view_ [ event (static (onAnimationStartMainWith HandleAnimation)) ] [ "some view" ]

onAnimationEnd :: (AnimationEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#animationend

It belongs to animation event, which is triggered when the Animation animation ends.

data Action = HandleAnimation AnimationEvent

view :: context -> props -> Model -> View context Action
view model = view_ [ onAnimationEnd HandleAnimation ]

update :: Action -> Effect context props Model Action
update (HandleAnimation AnimationEvent {..}) =
  io_ (consoleLog "animation event received")

onAnimationEndWith :: (AnimationEvent -> DOMRef -> action) -> Attribute model action Source #

Like onAnimationEnd, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onAnimationEndMain :: (AnimationEvent -> action) -> EventHandler model action Source #

Like onAnimationEnd, but dispatched on the Lynx main thread (MTS).

data Action = HandleAnimation AnimationEvent

view_ [ event (static (onAnimationEndMain HandleAnimation)) ] [ "some view" ]

onAnimationEndMainWith :: (AnimationEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onAnimationEndMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleAnimation AnimationEvent Model DOMRef

view_ [ event (static (onAnimationEndMainWith HandleAnimation)) ] [ "some view" ]

onAnimationCancel :: (AnimationEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#animationcancel

It belongs to animation event, which is triggered when the Animation animation cancels.

data Action = HandleAnimation AnimationEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onAnimationCancel HandleAnimation ]

update :: Action -> Effect context props Model Action
update (HandleAnimation AnimationEvent {..}) =
  io_ (consoleLog "animation event received")

onAnimationCancelWith :: (AnimationEvent -> DOMRef -> action) -> Attribute model action Source #

Like onAnimationCancel, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onAnimationCancelMain :: (AnimationEvent -> action) -> EventHandler model action Source #

Like onAnimationCancel, but dispatched on the Lynx main thread (MTS).

data Action = HandleAnimation AnimationEvent

view_ [ event (static (onAnimationCancelMain HandleAnimation)) ] [ "some view" ]

onAnimationCancelMainWith :: (AnimationEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onAnimationCancelMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleAnimation AnimationEvent Model DOMRef

view_ [ event (static (onAnimationCancelMainWith HandleAnimation)) ] [ "some view" ]

onAnimationIteration :: (AnimationEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#animationiteration

It belongs to animation event, which is triggered when the Animation animation iterates.

data Action = HandleAnimation AnimationEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onAnimationIteration HandleAnimation ]

update :: Action -> Effect context props Model Action
update (HandleAnimation AnimationEvent {..}) =
  io_ (consoleLog "animation event received")

onAnimationIterationWith :: (AnimationEvent -> DOMRef -> action) -> Attribute model action Source #

Like onAnimationIteration, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onAnimationIterationMain :: (AnimationEvent -> action) -> EventHandler model action Source #

Like onAnimationIteration, but dispatched on the Lynx main thread (MTS).

data Action = HandleAnimation AnimationEvent

view_ [ event (static (onAnimationIterationMain HandleAnimation)) ] [ "some view" ]

onAnimationIterationMainWith :: (AnimationEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onAnimationIterationMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleAnimation AnimationEvent Model DOMRef

view_ [ event (static (onAnimationIterationMainWith HandleAnimation)) ] [ "some view" ]

onTransitionStart :: (AnimationEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#transitionstart

It belongs to animation event, which is triggered when the Transition animation starts.

data Action = HandleTransition AnimationEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onTransitionStart HandleTransition ]

update :: Action -> Effect context props Model Action
update (HandleTransition TransitionEvent {..}) =
  io_ (consoleLog "transition event received")

onTransitionStartWith :: (AnimationEvent -> DOMRef -> action) -> Attribute model action Source #

Like onTransitionStart, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onTransitionStartMain :: (AnimationEvent -> action) -> EventHandler model action Source #

Like onTransitionStart, but dispatched on the Lynx main thread (MTS).

data Action = HandleTransition AnimationEvent

view_ [ event (static (onTransitionStartMain HandleTransition)) ] [ "some view" ]

onTransitionStartMainWith :: (AnimationEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onTransitionStartMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleTransition AnimationEvent Model DOMRef

view_ [ event (static (onTransitionStartMainWith HandleTransition)) ] [ "some view" ]

onTransitionEnd :: (AnimationEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#transitionend

It belongs to animation event, which is triggered when the Transition animation ends.

data Action = HandleTransition AnimationEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onTransitionEnd HandleTransition ]

update :: Action -> Effect context props Model Action
update (HandleTransition TransitionEvent {..}) =
  io_ (consoleLog "transition event received")

onTransitionEndWith :: (AnimationEvent -> DOMRef -> action) -> Attribute model action Source #

Like onTransitionEnd, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onTransitionEndMain :: (AnimationEvent -> action) -> EventHandler model action Source #

Like onTransitionEnd, but dispatched on the Lynx main thread (MTS).

data Action = HandleTransition AnimationEvent

view_ [ event (static (onTransitionEndMain HandleTransition)) ] [ "some view" ]

onTransitionEndMainWith :: (AnimationEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onTransitionEndMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleTransition AnimationEvent Model DOMRef

view_ [ event (static (onTransitionEndMainWith HandleTransition)) ] [ "some view" ]

onTransitionCancel :: (AnimationEvent -> action) -> Attribute model action Source #

https://lynxjs.org/api/elements/built-in/view.html#transitioncancel

It belongs to animation event, which is triggered when the Transition animation cancels.

data Action = HandleTransition AnimationEvent

view :: context -> props -> Model -> View context Action
view _ _ model = view_ [ onTransitionCancel HandleTransition ]

update :: Action -> Effect context props Model Action
update (HandleTransition TransitionEvent {..}) =
  io_ (consoleLog "transition event received")

onTransitionCancelWith :: (AnimationEvent -> DOMRef -> action) -> Attribute model action Source #

Like onTransitionCancel, but the handler also receives the target element's DOMRef. Use for main-thread (MTS) handlers that imperatively mutate the element.

onTransitionCancelMain :: (AnimationEvent -> action) -> EventHandler model action Source #

Like onTransitionCancel, but dispatched on the Lynx main thread (MTS).

data Action = HandleTransition AnimationEvent

view_ [ event (static (onTransitionCancelMain HandleTransition)) ] [ "some view" ]

onTransitionCancelMainWith :: (AnimationEvent -> model -> DOMRef -> action) -> EventHandler model action Source #

Like onTransitionCancelMain, but also receives read-only access to the model and the target element's DOMRef (for imperative MTS mutation).

data Action = HandleTransition AnimationEvent Model DOMRef

view_ [ event (static (onTransitionCancelMainWith HandleTransition)) ] [ "some view" ]

Types

data TouchEvent Source #

Constructors

TouchEvent 

Fields

  • identifier :: Double

    Unique identifier of the touch point, which remains unchanged during the same touch process

  • xy :: (Double, Double)

    The horizontal / vertical position of the touch point in the coordinate system of the element actually touched

  • page :: (Double, Double)

    The horizontal / vertical position of the touch point in the current LynxView coordinate system

  • client :: (Double, Double)

    The horizontal / vertical position of the touch point in the current window coordinate system

Instances

Instances details
Show TouchEvent Source # 
Instance details

Defined in Miso.Native.Element.View.Event

Eq TouchEvent Source # 
Instance details

Defined in Miso.Native.Element.View.Event

data AnimationEvent Source #

Constructors

AnimationEvent 

Fields

  • animationType :: AnimationType

    The type of the animation. If it is a keyframe animation, this value is `keyframe-animation`; if it is a transition animation, this value is `transition-animation`.

  • animationName :: MisoString

    The name of the animation. If it is a keyframe animation, it is the name of `@keyframes` in CSS; if it is a transition animation, it is the name of `transition-property` in CSS.

  • newAnimator :: Bool

    Default value True

Decoders

touchDecoder :: Decoder TouchEvent Source #

Touch decoder for use with events like onTap

animationDecoder :: Decoder AnimationEvent Source #

Animation decoder for use with events like onAnimationStart

Event Map