MotionScript

@motion-script/core


@motion-script/core / TweenStepper

Interface: TweenStepper

Defined in: tween/stepper.ts:12

Internal

Methods

advance()

advance(dt): boolean

Defined in: tween/stepper.ts:23

Advance the animation by dt seconds.

Parameters

dt

number

Returns

boolean

true when the animation has finished and its final value has been applied; false if it is still running.


seek()

seek(elapsed): void

Defined in: tween/stepper.ts:17

Jump to the value corresponding to elapsed seconds from the start. Call with 0 to prime the stepper before the first advance.

Parameters

elapsed

number

Returns

void