Skip to content

anim-format (runtime format) / itemAtTime

Function: itemAtTime() ​

ts
function itemAtTime(
   runs, 
   frame, 
   index, 
   time
): Item | null;

Item index of the run at real frame frame, as drawn at time (fractional; before or after frame): followed run to run while tweened runs hand it over (same index, same item — as smoothing pairs them); null = it was not moving like this then.

Parameters ​

ParameterType
runsRun[]
framenumber
indexnumber
timenumber

Returns ​

Item | null

HereSplash — 2D animation for the web