Video
WARNING
Available only on animated designs.
A video layer embeds a video clip into your animated design. The video is composited into the exported output (MP4, GIF, or HTML5). Supported input formats: MP4, WebM, MOV. Maximum file size: 100 MB.
Use fitting_type and alignment (configured in the design builder) to control how the video fills its layer area. Trim the clip using query parameters on the video URL: append ?trim_start=2.5 to skip the first 2.5 seconds, or ?trim_end=10 to stop at 10 seconds.
Available Properties
| Property | Description |
|---|---|
video_url | HTTP(s) URL of the video. Max 100 MB. Supported: MP4, WebM, MOV. Append ?trim_start=2.5 or ?trim_end=10 to trim |
audio_muted | Boolean. Mutes the video audio. Default: false |
hidden | Boolean. Hides the video layer if true |
Example
json
{
"video_element_name": {
"video_url": "https://example.com/video.mp4",
"audio_muted": false,
"hidden": false
}
}Trim example:
json
{
"video_url": "https://example.com/video.mp4?trim_start=2.5&trim_end=10"
}Related
- Element Properties Overview
- Generate Videos — generation endpoint for video formats
- Audio Element — add audio tracks to video formats
