Type alias TEasingFunction<T>

TEasingFunction<T>: T extends number[]
    ? ((timeElapsed, startValue, byValue, duration, index) => number)
    : ((timeElapsed, startValue, byValue, duration) => number)

An easing function used to calculate the current value

Type Parameters

  • T = unknown

See

AnimationBase#calculate

Param

ms elapsed since start

Param

Param

Param

in ms

Returns

next value

Generated using TypeDoc