Skip to content

Documentation / @ripl/core / ElementInterpolationKeyFrame

Type Alias: ElementInterpolationKeyFrame<TValue> ​

ElementInterpolationKeyFrame<TValue> = object

Defined in: packages/core/src/core/element.ts:258

A single keyframe in a multi-step interpolation, with an optional offset (0–1) and a target value.

Type Parameters ​

Type ParameterDefault type
TValuenumber

Properties ​

offset? ​

optional offset?: number

Defined in: packages/core/src/core/element.ts:260

Position of the keyframe along the transition, from 0 to 1; distributed evenly when omitted.


value ​

value: TValue

Defined in: packages/core/src/core/element.ts:262

Target value the state property holds at this keyframe.