Class for animation handling

Param

Delta time from start of animation

Param

Array of Eases animation functions

Param

Queue of future animations

Param

Function for handling of interframe modification

Param

Animation duration in milliseconds

Param

Ease animation function factory

Hierarchy

  • Animation

Properties

delta: number = 0
duration: number
eases: Ease[]
easing: AnimationEasing = AnimationEasings.linear
nextAnimations: Animation[] = ...
values: [number, number][]

Methods

  • Finish current animation and start the next one on the sequence

    Returns

    Future animations or undefined

    Parameters

    • emitEvents: boolean = true

      Flag that tells whether the function should emit any events

    Returns undefined | Animation

  • Finish all animations

    Parameters

    • emitEvents: boolean = true

      Flag that tells whether the function should emit any events

    Returns void

  • Get final value of queued animations

    Returns

    Final values of the animations

    Returns number[]

  • Get time until all queued animations will finish

    Returns number

  • Get is animation over and there are no queued animations

    Returns boolean

  • Starts an animation

    Returns

    Object itself for fluent interface

    Returns Animation