Skip to content

StepOptions

Options of a timeline step: a tween’s, and where it goes.

optional at?: Position

Where it starts (see Position); delay is added to it. Default: the end of the timeline so far.


optional ease?: Ease | "linear" | "quadIn" | "quadOut" | "quadInOut" | "cubicOut" | "sineInOut" | "backOut" | "elasticOut" | "bounceOut"

An EASE name (‘quadOut’ by default, ‘backOut’, ‘linear’, …) or a function of 0–1.

TweenOptions.ease


optional delay?: number

Seconds before it starts; the start values are read then.

TweenOptions.delay


optional onUpdate?: (k) => void

Called every step with the eased progress, 0–1.

number

void

TweenOptions.onUpdate