TweenOptions
Configuration object for `tween`.
TweenOptions
Configuration object for tween.
Properties
from
from: numberStarting numeric value.
to
to: numberEnding numeric value.
duration
duration: numberDuration in milliseconds.
easing?
easing?: EasingFn | undefinedOptional easing curve (defaults to linear).
onUpdate
onUpdate: (value: number) => voidInvoked every frame with the interpolated value.
onComplete?
onComplete?: (() => void) | undefinedFired once after reaching the target.