🎥 Make videos programmatically with React
Update sequence.md and composition.md
Mickael Alves10e925a4abb8
diff --git a/packages/docs/docs/composition.md b/packages/docs/docs/composition.mdindex 9366be3ce0..623f014b32 100644--- a/packages/docs/docs/composition.md+++ b/packages/docs/docs/composition.md@@ -3,7 +3,9 @@ id: compositiontitle: <Composition />----This is the component to use to register a video to make it renderable and make it show up in the sidebar of the Remotion Player.+This is the component to use to register a video to make it renderable and make it show up in the sidebar of the Remotion development interface.++A composition represents the video you want to create, as a collection of clips (for example, several `<Sequence>`) that will play back to back to form your video.## API@@ -89,4 +91,5 @@ export const MyVideo = () => {- [registerRoot()](/docs/register-root)- [The fundamentals](/docs/the-fundamentals)- [CLI options](/docs/cli)+- [`<Sequence />`](/docs/sequence)- [`<Still />`](/docs/still)diff --git a/packages/docs/docs/sequence.md b/packages/docs/docs/sequence.mdindex 7cfc28bfed..b4e1940225 100644--- a/packages/docs/docs/sequence.md+++ b/packages/docs/docs/sequence.md@@ -11,7 +11,37 @@ const BlueSquare: React.FC = () => <div></div>// - BlueSquare```-Using a Sequence, you can time-shift certain parts of your animation and therefore make them more reusable. Sequences are also shown in the timeline and help you visually understand the structure of your video.+Sequences are small individual sections in finite time that make up your video clip. By using a sequence, you can time-shift the display of your components or parts of your animation in the video.++_For example, in a video trailer composed of an intro, a video clip and an outro, each part of it will be a Sequence, as each represents a sub-part of the video that should be displayed with a time-shift. (The intro should be displayed at the beginning plus disappear, same for the outro at the end...)_++```tsx twoslash+import { Sequence } from "remotion";++export const Intro = () => <></>;+export const Clip = () => <></>;+export const Outro = () => <></>;++// ---cut---++const MyTrailer = () => {+ return (+ <>+ <Sequence from={0}>+ <Intro />+ </Sequence>+ <Sequence from={10}>+ <Clip />+ </Sequence>+ <Sequence from={20}>+ <Outro />+ </Sequence>+ </>+ );+};+```++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@@ -110,4 +140,5 @@ See the [`<Series />`](/docs/series) helper component, which helps you calculate## See also- [Reuse components using Sequences](/docs/reusability)+- [`<Composition />`](/docs/composition)- [`<Series />`](/docs/series)