🎥 Make videos programmatically with React
improve docs
Jonny Burgerc636a5375f7b
diff --git a/packages/docs/docs/sequence.md b/packages/docs/docs/sequence.mdindex 3e34727270..97ab23927f 100644--- a/packages/docs/docs/sequence.md+++ b/packages/docs/docs/sequence.md@@ -43,21 +43,42 @@ const MyTrailer = () => {Sequences usually appear as subparts of a composition, they are also displayed on the timeline on the Remotion development interface and help you to visually understand the structure of your video.-## API+## Props-The Sequence component is a high order component and accepts, besides it's children, the following props:+The Sequence component is a high order component and accepts, besides children, the following props:-- `from` _(required)_: At which frame it's children should assume the video starts. When the sequence is at `frame`, it's children are at frame `0`.+### `from`-- `durationInFrames` _(optional)_: For how many frames the sequence should be displayed. Children are unmounted if they are not within the time range of display. By default it will be `Infinity` to avoid limit the duration of the sequence.+_required_-- `name` _(optional)_: You can give your sequence a name and it will be shown as the label of the sequence in the timeline of the Remotion preview. This property is purely for helping you keep track of sequences in the timeline.+At which frame it's children should assume the video starts. When the sequence is at `frame`, it's children are at frame `0`.-- `layout`: _(optional)_: Either `"absolute-fill"` _(default)_ or `"none"` By default, your sequences will be absolutely positioned, so they will overlay each other. If you would like to opt out of it and handle layouting yourself, pass `layout="none"`. Available since v1.4.+### `durationInFrames`-:::info-Good to know: You can nest sequences within each other and they will cascade. For example, a sequence that starts at frame 60 which is inside a sequence that starts at frame 30 will have it's children start at frame 90. However, nested sequences are not currently displayed in the timeline.-:::+_optional_++For how many frames the sequence should be displayed. Children are unmounted if they are not within the time range of display. By default it will be `Infinity` to avoid limit the duration of the sequence.++### `name`++_optional_++You can give your sequence a name and it will be shown as the label of the sequence in the timeline of the Remotion preview. This property is purely for helping you keep track of sequences in the timeline.++### `layout`++_optional_++Either `"absolute-fill"` _(default)_ or `"none"` By default, your sequences will be absolutely positioned, so they will overlay each other. If you would like to opt out of it and handle layouting yourself, pass `layout="none"`. Available since v1.4.++### `style`++CSS styles in React `style` notation to be applied to the container. If `layout` is set to `none`, there is no container and setting this style is not allowed.++## Cascading++You can nest sequences within each other and they will cascade.+For example, a sequence that starts at frame 60 which is inside a sequence that starts at frame 30 will have it's children start at frame 90.## Examples