Search Docs
Loading...
Skip to content

Interface: Keyframe

One keyframe of a property: a normalized time from 0 to 1, a value, and the curve to the next keyframe.

Properties#

Property Type Description
time number The time from 0 to 1, normalized over the duration of the block.
value KeyframeValue -
easing? KeyframeEasing The curve to the next keyframe. Defaults to the 'Linear' preset.
spatialOut? Vec2 The tangent that leaves this keyframe’s vec2 value, relative to that value. It shapes the motion path to the next keyframe.
spatialIn? Vec2 The tangent that enters the next keyframe’s vec2 value, relative to that value. It sits on this keyframe, like spatialOut, so the last keyframe does not use it.