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 Parameter | Default type |
|---|---|
TValue | number |
Properties ​
offset? ​
optionaloffset?: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.