Skip to content

anim-format (runtime format) / itemPlayhead

Function: itemPlayhead() ​

ts
function itemPlayhead(
   item, 
   symbol, 
   elapsed
): object;

The inner frame shown elapsed (maybe fractional) parent frames in, and the inner POSITION tweens are drawn at (owner 2026-11-06, playhead.ts): pos = frame ± the way to the neighbouring inner frame, frame when that neighbour is not next to it (a wrap, the end of a play-once).

Parameters ​

ParameterType
itemItem
symbolAnimSymbol
elapsednumber

Returns ​

object

NameType
framenumber
posnumber

HereSplash — 2D animation for the web