editor/apps/cli/reference/jsx/sequences.md
konstantin-paulus 2bb2add67b Update JSX elements to PascalCase and enhance type handling in documentation
Refactored JSX elements from lowercase to PascalCase, including `<scene>` to `<Scene>`, `<text>` to `<Text>`, and others, to improve consistency and clarity in the codebase. Updated related documentation to reflect these changes, ensuring that the usage of JSX elements aligns with the new naming conventions. This update enhances the overall readability and usability of the JSX API.
2026-07-19 20:25:33 +02:00

1.3 KiB
Raw Blame History

Sequences

<Sequence> is a track-like container for back-to-back clips. It carries no timing of its own and does not position its children at mount — give each child an explicit start (see timing.md). What it adds is clip-to-clip transitions on direct children, and, in the editor, a non-overlapping invariant: dragging or regrouping clips trims or removes whatever they land on.

<Sequence>
  <Video src="/Movies/intro.mp4" start={0}  end={12} />                 {/* timeline 0–12 */}
  <Video src="/Movies/main.mp4"  start={12} end="02:30" sourceIn={5} /> {/* timeline 12–2:30, source from 5 s */}
  <Video src="/Movies/outro.mp4" start="02:30" />                       {/* from 2:30, plays to its natural end */}
</Sequence>

The next clip's start must match the previous clip's on-timeline end — its end, or from the source side start + (sourceOut - sourceIn). Here main ends at 02:30, so outro starts there. Giving main an end places the next cut at a round timeline mark without computing source lengths.

Props

Prop Type Meaning
name string Human-readable node name.

Purely structural; nothing else.

Direct children of a sequence may declare a transition into the following clip.