Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "geocortex/framework-ui/animation/Animation"

Index

Variables

Const MAX_OPS_PER_FRAME

MAX_OPS_PER_FRAME: 1000 = 1000

The maximum number of delegated animation operations that the system will attempt to perform in a single animation frame.

Functions

create

  • Creates a new animation using the default AnimationFactory.

    Parameters

    • element: HTMLElement

      The element to apply the animation on.

    • Optional keyframes: AnimationKeyframe[] | string[]

      The animation keyframes to apply. Can be an array of CSS class names to apply, or an array of AnimationKeyframe.

    • Optional frameCallback: AnimationFrameCallback

      An optional callback to execute after every frame.

    Returns AnimationSequence

getDefault

play

scheduleForAnimationFrame

  • scheduleForAnimationFrame(delegate: function): void
  • Schedules an action to be done on an animation frame. As a general rule, any work that touches the DOM (write or read) should be deferred using this mechanism (if possible).

    Parameters

    • delegate: function

      The delegated action.

        • (): void
        • Returns void

    Returns void