Basic Element

In projectData, the view, audio, effect, and transition are all arrays of element.

Each element contains the following common parameters:

PropTypeRequiredExampleValue RangeDescription
idstringtrueb895d96c-e974-4d3f-af6d-ddc464fd4997-A unique identifier for the element. It is recommended to use a UUID.
typestringtrue-Video | Image | Gif | Text | Caption | Shape | Chart | Progress | SoundWave | Group | Transition | Audio | Filter | Tone | LutThe type of the element. This determines how the element is rendered.
startnumbertrue->= 0The time at which the element appears on the project timeline, in seconds.
durationnumbertrue-> 0The total duration of the element in the timeline, measured in seconds.
trackIndexnumbertrue->= 0The index of the track in which the element is placed within the timeline.
imageElement.json
1 2 { 3 "id": "bba95c7f-652b-4380-b166-6bece989f527", 4 "type": "Image", 5 "start": 0, 6 "duration": 5, 7 "trackIndex": 0, 8 "x": 0, 9 "y": 0, 10 "width": 3629, 11 "height": 5444, 12 "blendMode": "normal", 13 "anchorX": 1814.5, 14 "anchorY": 2722, 15 "rotation": 0, 16 "scaleX": 0.19838354151359294, 17 "scaleY": 0.19838354151359294, 18 "alpha": 1, 19 "skewX": 0, 20 "skewY": 0, 21 "hidden": false, 22 "locked": false, 23 "keyframes": [], 24 "externalUrl": "https://images.pexels.com/photos/33189512/pexels-photo-33189512.jpeg", 25 "ext": "jpeg" 26 } 27