TimelineKeyframeData
ceramic.TimelineKeyframeData (Typedef)
Data structure representing a keyframe in serialized form.
This typedef is used for storing and loading keyframe data, typically from fragment files or other data sources. It contains the raw data that gets converted into typed TimelineKeyframe instances at runtime.
The actual keyframe type created depends on the track type and the value's data type:
- Bool values -> TimelineBoolKeyframe
- Float/Int values -> TimelineFloatKeyframe
- Color values -> TimelineColorKeyframe
- Arrays -> TimelineFloatArrayKeyframe
Example in fragment data:
{
"index": 30,
"easing": "EASE_IN_OUT",
"value": 100.5
}