
<FormatHero
  format="motion"
  command="recit render film.md"
  card
  title="Films written in Markdown."
  description="Each scene is a shot. Play the film in the browser, or render it to MP4."
  actions={[
    { label: "Start a film", site: "docs", href: "/formats/motion/overview" },
    { label: "Watch the examples", href: "/gallery" },
  ]}
>
  <StoryEmbed slug="motion/hero" showOpenLink={false} />
</FormatHero>

**Récit motion** turns a Markdown story into a short film. The film above is one: it plays in your
browser with the same blocks engine that renders the MP4. Press :kbd[Space] to pause, ← and → to
seek.

<PageSection tone="surface" label="Every aspect, any theme">

## Every aspect, any theme

Every film has a layout per aspect: the film above plays in `16:9`, the two below in `9:16` with the
`warm-editorial` theme and in `1:1` with `saas-product`. The [gallery](/motion/gallery) shows each
example of the repository in all three.

<div className="motion-grid">
  <StoryEmbed slug="motion/hello" aspect="9:16" showOpenLink={false} />
  <StoryEmbed slug="motion/launch" aspect="1:1" showOpenLink={false} />
</div>

</PageSection>

<PageSection tone="plain" label="The motion format">

## The motion format

<FeatureGrid cols={3}>
  <FeatureCard title="Markdown first" description="Front matter, scenes split by --- lines, attributes on the separator. The deck syntax, read as a film." site="docs" href="/formats/motion/overview" />
  <FeatureCard title="Deck to video" description="The same source renders as slides and as a film when its scenes fit the motion blocks." href="/motion/deck-to-video" />
  <FeatureCard title="MP4 export" description="recit render draws the video in Chromium, frame for frame like the browser player." href="/motion/video" />
  <FeatureCard title="Eight blocks" description="Title, chapter, statement, stat, list, compare bars, UI mock and UI scene." site="docs" href="/formats/motion/overview" />
  <FeatureCard title="Typed JSON twin" description="Every story has a typed JSON form, and the film.json render model stays the single source of truth." site="docs" href="/formats/motion/overview" />
  <FeatureCard title="MCP server" description="Agents build, validate, edit and render films in Markdown or JSON through @recit/mcp." site="docs" href="/formats/motion/overview" />
</FeatureGrid>

</PageSection>

<PageSection tone="tint" label="Start a film">

## Start a film

<TutorialSteps>
  <TutorialStep title="Create a story" duration="10 s">
    `recit init --format motion` writes a starter `story.md` with `format: motion`.

    ```bash
    npx recit init story.md --format motion
    ```

  </TutorialStep>
  <TutorialStep title="Preview with live reload" duration="1 min">
    `recit dev` plays the film in the browser and reloads it on every save. A 9:16, 4:5 or 1:1
    film gets the **Safe area** button (or the key G): it shades what a social app covers, for the
    preset picked beside it; the MP4 stays clean.

    ```bash
    npx recit dev story.md
    ```

  </TutorialStep>
  <TutorialStep title="Render the MP4" duration="30 s">
    `recit render` loads `@recit/motion-render` on demand and writes the video.

    ```bash
    npx recit render story.md --aspect 9:16 --output out/
    ```

  </TutorialStep>
</TutorialSteps>

The full syntax is specified on [docs.recit.dev](https://docs.recit.dev/formats/motion).

</PageSection>
