Skip to content

KeyframeTrackOptions

Defined in: KeyframeTrack.ts:19

Options for creating a keyframe track.

T extends Interpolatable

optional duration?: number

Defined in: KeyframeTrack.ts:25

Total duration in ms. Defaults to the last keyframe’s time.


optional easing?: EasingFunction

Defined in: KeyframeTrack.ts:31

Default easing between keyframes (default easeLinear).


keyframes: Keyframe<T>[]

Defined in: KeyframeTrack.ts:21

At least 2 keyframes, sorted by time.


optional loop?: boolean

Defined in: KeyframeTrack.ts:27

Whether to loop the track.


optional onComplete?: () => void

Defined in: KeyframeTrack.ts:33

Called when the track completes (non-looping only).

void


setter: (value) => void

Defined in: KeyframeTrack.ts:23

Called each frame with the interpolated value.

T

void


optional speed?: number

Defined in: KeyframeTrack.ts:29

Playback speed multiplier (default 1).