Scene settings
Scenes play in order; each has a duration, an optional background and transition, and a list of elements.
A movie is a sequence of scenes. Each scene owns its elements; duration may be a number of seconds, "longest" (span the longest element) or "voice" (span the scene's voiceover). The transition animates the entry from the previous scene.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
id * | string (non-empty) | — | Stable identifier, unique across the whole movie. Used by editor selection sync and error paths. |
duration | number (> 0) | "longest" | "voice" | — | Scene duration: seconds, or "longest" (longest element) or "voice" (voiceover length). Defaults to "longest". |
background | string (non-empty) | object | — | Scene background: a CSS color string, or a media reference object. |
transition | object | — | Transition from the previous scene into this one. |
elements * | array of (object | object | object | object | object | object | object) | — | Elements rendered in this scene. |
background object
Reference to background media (image or video).
| Property | Type | Default | Description |
|---|---|---|---|
src * | string (non-empty) | — | Image source URL. Provide exactly one of "src" or "generate". |
fit | "cover" | "contain" | "fill" | "cover" | How the media scales to its box: cover crops to fill it, contain letterboxes inside it, fill stretches to it. |
transition object
Transition from the previous scene into this one.
| Property | Type | Default | Description |
|---|---|---|---|
type * | "cut" | "fade" | "wipe" | "slide" | — | Transition style used to enter this scene from the previous one. |
duration | number (≥ 0) | 0.5 | Transition duration in seconds (use 0 or type "cut" for an instant switch). |
Example
Scene settings: explicit duration, image background, wipe transition: