Type alias TOnAnimationChangeCallback<T, R>

TOnAnimationChangeCallback<T, R>: ((value, valueProgress, durationProgress) => R)

Type Parameters

  • T

  • R = void

Type declaration

    • (value, valueProgress, durationProgress): R
    • Callback called every frame

      Parameters

      • value: T

        current value of the animation.

      • valueProgress: number

        ∈ [0, 1], the current animation progress reflected on value, normalized. 0 is the starting value and 1 is the ending value.

      • durationProgress: number

        ∈ [0, 1], the current animation duration normalized to 1.

      Returns R

Generated using TypeDoc