Skip to content

anim-format (runtime format) / StateTransition

Interface: StateTransition ​

One arrow of a state machine: from section from (absent = ANY STATE) to section to, taken at a beat when every condition of when holds and, with end, the section has played to its last frame (exit time). The same shape in the .hm5 (Layer.transitions of the section layer) and the runtime JSON (scenes[i].transitions).

Properties ​

PropertyType
end?boolean
from?string
tostring
when?StateCondition[]

HereSplash — 2D animation for the web