resolveTrackTransition

Returns where a keyframe track is right now: the endpoints of its current move and the eased progress between them.

@internote/canvas-sdkFunction
On this page
import { resolveTrackTransition } from '@internote/canvas-sdk';

The last keyframe to fire is in effect. It holds the previous value for its delayMs lead-in, then eases over its duration: window, then settles. Fired frames are ordered by firedFrames.

#Signature

(track: KeyframeTrack, steps: StepController): TrackTransition

#Parameters

track
The refined !cue.to chain: a base value and anchored keyframes.
steps
The scene's step controller, read for the current progression.

Declared in packages/canvas-sdk/src/animation/keyframes.ts:149.

Last updated