TrackTransition
A track's momentary transition: where it is coming from, going to, and how far along.
@internote/canvas-sdkOn this page
import { TrackTransition } from '@internote/canvas-sdk';What ctx.animation.attrTransition returns. A surface with richer in-betweens than the data-layer interpolators, such as a curve morphing between expressions, reads the endpoints and blends them itself.
#Fields
elapsedMsMilliseconds since that keyframe's anchor fired, lead-in delay included. What a surface animating alongside the value reads: a
!cue.zoom box is drawn out of this while the value is still holding.numberframeThe keyframe in effect, when one has fired.
CueKeyframefromThe value moving away from: the previous keyframe's, or the track's base.
unknowntEased progress from
from to to, 1 when settled.numbertoThe value moving towards. Equal to
from once settled or during a lead-in delay.unknowntransitioningWhether the value is inside an
duration: window and moving.booleanDeclared in packages/canvas-sdk/src/animation/keyframes.ts:119.