TyphonJS Runtime Library (FVTT) 0.3.0
  • #standard/action/animate/composable
  • animateWAAPI

Function animateWAAPI

  • animateWAAPI(
        options?: AnimateWAAPI,
    ): Action<HTMLElement, ActionReturn<AnimateWAAPI>>
  • Defines a higher order function returning an action that triggers WAAPI / Element.animate animations from provided keyframes and options in response to a given event. The default event is the click event. You may change that to any

    Parameters

    • Optionaloptions: AnimateWAAPI

      Optional parameters.

    Returns Action<HTMLElement, ActionReturn<AnimateWAAPI>>

    Actual animateWAAPI Action.

    See

    • https://developer.mozilla.org/en-US/docs/Web/API/Element/animate
    • https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Keyframe_Formats

Settings

Member Visibility
Demo - Essential Svelte ESM
TyphonJS Runtime Library (FVTT) 0.3.0