TweenOptions
Defined in: src/anim/tween.ts:8
Options shared by every tween: how long the motion lasts, the curve it follows, and a one-shot callback when it lands.
Properties
Section titled “Properties”duration?
Section titled “duration?”
optionalduration?:number
Defined in: src/anim/tween.ts:10
Tween duration in milliseconds. Default 300.
easing?
Section titled “easing?”
optionaleasing?:Easing
Defined in: src/anim/tween.ts:12
Easing curve name. Default out-cubic.
onComplete?
Section titled “onComplete?”
optionalonComplete?: () =>void
Defined in: src/anim/tween.ts:14
Called once when the tween reaches its target.
Returns
Section titled “Returns”void