Skip to content

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.

optional duration?: number

Defined in: src/anim/tween.ts:10

Tween duration in milliseconds. Default 300.


optional easing?: Easing

Defined in: src/anim/tween.ts:12

Easing curve name. Default out-cubic.


optional onComplete?: () => void

Defined in: src/anim/tween.ts:14

Called once when the tween reaches its target.

void