Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
---
title: Slide Doors
description: "Two panels slide apart like doors to reveal 'Arriving in your repo.' with an accent word"
component: slide-doors
vibe: clean
length: 138
useWhen:
- "A rhythmic three-line pitch where each line is pushed out by the next, like doors sliding apart."
- "A final line that lands on a highlighted word, such as where the product ends up."
avoidWhen:
- "You need a single line, not a sequence — use `scan-reveal`."
- "You want lines to rewrite in place — use `rewrite-bars`."
askedAs:
- "panels part to reveal text"
- "sliding doors headline"
- "I want two panels sliding apart to show a line with an accent word"
- "three line pitch where each line pushes out the previous one"
- "arrival message like something landing in your repo, revealed through doors"
- "viewer feels an opening or entry as panels part"
---
<ComponentPreview name="slide-doors" />
<InstallBlock name="slide-doors" />
## Usage
```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { SlideDoors } from "@/components/remocn/slide-doors";
const SlideDoorsScene = () => (
<SlideDoors lines={["Scenes that move.", "Code you own.", "Arriving in your repo."]} highlight="repo." />
);
export const RemotionRoot = () => (
<Composition
id="SlideDoors"
component={SlideDoorsScene}
durationInFrames={165}
fps={30}
width={1280}
height={720}
/>
);
```
Each line slides apart like a pair of doors and the next line is revealed in the gap, ending with the last line and its highlight word in the accent colour. Pass `lines` and `highlight`; it ships light and dark.
<PropsTable title="Props"
rows={[
{
name: "lines",
type: "string[]",
description: "Lines shown in turn; the last one gets the highlight.",
},
{
name: "highlight",
type: "string",
default: "\"repo.\"",
description: "Word or phrase set in the accent colour.",
},
{
name: "hold",
type: "number",
default: "28",
description: "Frames the final line holds.",
},
{
name: "accent",
type: "string",
description: "Accent colour (any CSS colour).",
},
{
name: "background",
type: "string",
description: "Overrides the theme background colour.",
},
{
name: "speed",
type: "number",
default: "1",
description: "Playback multiplier; above 1 plays faster.",
},
{
name: "theme",
type: "\"dark\" | \"light\"",
default: "\"dark\"",
description: "Colour scheme; ships light and dark.",
},
]}
/>