Methods
Static animate
- animate(from: number, to: number, durationMs: number, onAnimate: (value: number) => void, onCompleted: () => void, easingFunction?: TEasingFn): AnimationToken
-
Parameters
-
from: number
-
to: number
-
durationMs: number
-
onAnimate: (value: number) => void
-
onCompleted: () => void
-
Default value easingFunction: TEasingFn = easing.outExpo
Static interpolate
- interpolate(from: number, to: number, interpolationFactor: number): number
-
Parameters
-
from: number
-
to: number
-
interpolationFactor: number
Returns number
A class for animating a double-precision (number) value