Skip to content

anim-format (runtime format) / sectionPosition

Function: sectionPosition() ​

ts
function sectionPosition(
   map, 
   at, 
   section, 
   phase, 
   progress
): number | null;

The playhead position progress (0..1) of the way through a section / phase (sectionRange): first + (last − first) × progress — fractional, so tweens are drawn in between (anim-format playhead.ts). Null = no such section / label.

Parameters ​

ParameterType
mapFrameMap
atnumber
sectionstring | null
phasestring | null | undefined
progressnumber

Returns ​

number | null

HereSplash — 2D animation for the web