figureone
    Preparing search index...

    Animation step base class. All animation steps extend this class.

    • duration number — in seconds
    • onFinish string | (cancelled: boolean) => void | null — called when animation is finished - a true parameter is passed to the callback if the animation was cancelled
    • completeOnCancel boolean | nulltrue to skip to end of animation on cancel
    • state animating | idle | waitingToStart | finished
    • removeOnFinish booleantrue to remove the animation from the animation manager when it is finished (true)
    • name string — animation name identifier
    • startDelay number — delay before animation starts in seconds
    • precision number — precision to do calculations to (8)

    Hierarchy (View Summary)

    Index

    Methods

    • Get remaining duration of the animation.

      Parameters

      • now: number

        define this if you want remaining duration from a custom time

      Returns number | null