作る

TweenOptions

Configuration object for `tween`.

TweenOptions

Configuration object for tween.

Properties

from

from: number

Starting numeric value.

to

to: number

Ending numeric value.

duration

duration: number

Duration in milliseconds.

easing?

easing?: EasingFn | undefined

Optional easing curve (defaults to linear).

onUpdate

onUpdate: (value: number) => void

Invoked every frame with the interpolated value.

onComplete?

onComplete?: (() => void) | undefined

Fired once after reaching the target.