KeyframeTrackOptions
Defined in: KeyframeTrack.ts:19
Options for creating a keyframe track.
Type Parameters
Section titled “Type Parameters”T extends Interpolatable
Properties
Section titled “Properties”duration?
Section titled “duration?”
optionalduration?:number
Defined in: KeyframeTrack.ts:25
Total duration in ms. Defaults to the last keyframe’s time.
easing?
Section titled “easing?”
optionaleasing?:EasingFunction
Defined in: KeyframeTrack.ts:31
Default easing between keyframes (default easeLinear).
keyframes
Section titled “keyframes”keyframes:
Keyframe<T>[]
Defined in: KeyframeTrack.ts:21
At least 2 keyframes, sorted by time.
optionalloop?:boolean
Defined in: KeyframeTrack.ts:27
Whether to loop the track.
onComplete?
Section titled “onComplete?”
optionalonComplete?: () =>void
Defined in: KeyframeTrack.ts:33
Called when the track completes (non-looping only).
Returns
Section titled “Returns”void
setter
Section titled “setter”setter: (
value) =>void
Defined in: KeyframeTrack.ts:23
Called each frame with the interpolated value.
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”void
speed?
Section titled “speed?”
optionalspeed?:number
Defined in: KeyframeTrack.ts:29
Playback speed multiplier (default 1).