Keyframes definunt specificas proprietatum valores ad specificos tempora, cum interpolatione inter eos ad creandum lenes animationes.
| Proprietas | Typus | Requiritur | Exemplum | Ambitus Valoris | Descriptio |
|---|---|---|---|---|---|
| id | string | true | - | - | Identificator unicus keyframe. |
| time | number | true | - | - | Tempus in quo keyframe fit, in secundis (relativum ad tempus initii elementorum). |
| stateObj | object | true | - | - | Objectum statum continens valores proprietatum ad hoc keyframe. Potest includere ullam animabilem proprietatem sicut x, y, rotationem, scaleX, scaleY, alpha, etc. |
| cp1 | object | false | - | - | Primus punctum controlis pro Bezier curva leniatione. Coordinatae normalizatae sunt (0-1 range). Exemplum: {x: 0.25, y: 0.1} |
| cp2 | object | false | - | - | Secundus punctum controlis pro Bezier curva leniatione. Coordinatae normalizatae sunt (0-1 range). Exemplum: {x: 0.25, y: 1} |
Proprietates cp1 et cp2 definunt cubicam Bezier curvam pro customi leniatione inter keyframes:
cp1: {x: 0.42, y: 0}, cp2: {x: 0.58, y: 1}cp1: {x: 0.42, y: 0}, cp2: {x: 1, y: 1}cp1: {x: 0, y: 0}, cp2: {x: 0.58, y: 1}{
"id": "39ecb75a-3490-43bd-84c2-72366c2f39f2",
"type": "Image",
"start": 0,
"duration": 5,
"trackIndex": 0,
"x": 0,
"y": 0,
"blendMode": "normal",
"anchorX": 1302,
"anchorY": 2312,
"rotation": 0,
"scaleX": 0.23356401384083045,
"scaleY": 0.23356401384083045,
"alpha": 1,
"skewX": 0,
"skewY": 0,
"keyframes": [
{
"id": "800350bd-4a24-4440-904c-ec08a8159508",
"time": 0,
"stateObj": {
"alpha": 0
},
"cp1": {
"x": 0.25,
"y": 0.1
},
"cp2": {
"x": 0.25,
"y": 1
}
},
{
"id": "ce3f9b10-2b9e-4266-8cdb-77167f9f16aa",
"time": 3,
"stateObj": {
"alpha": 1
},
"cp1": {
"x": 0.25,
"y": 0
},
"cp2": {
"x": 0.25,
"y": 0.9
}
}
],
"externalUrl": "https://images.pexels.com/photos/30465303/pexels-photo-30465303.jpeg",
"ext": "jpeg"
}
Cum elementum plures methodos animationis applicatas habet:
keyframes array) - standard property animationsanimations array) - advanced animations like expressions, paths, sequencesSi eadem proprietas per varias methodos animatur, ordo prioritas est:
Hoc sinit advanced animations superare valores keyframe cum necesse est.
time valores relativi sunt ad tempus start elementorum, non ad tempus absolutum temporis.stateObj.cp1 et cp2 Bezier control points.fill, stroke) in spatio RGB interpolantur.