Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

3.7 KB
Raw Blame
---
title: Short Slide Down
description: Words drop in from above and stack into a centered multi-line composition
component: short-slide-down
vibe: clean
length: 60
useWhen:
  - "A multi-word headline should build its layout visibly — each word stacking to create a composed block."
  - "The scene is short and you need a fast (60f) entrance that still feels structured."
  - "You want vertical motion on entrance without a transition between two different texts."
avoidWhen:
  - "You are swapping between two text values — use `shared-axis-y` which handles the outgoing text exit properly."
  - "The text is a single word or short phrase that doesn't benefit from a stacking effect — use `scale-down-fade` or `soft-blur-in` for a cleaner single-unit entrance."
  - "You want horizontal entry motion — use `short-slide-right` for a left-to-right glide instead."
askedAs:
  - "words drop in and stack"
  - "top down word build block"
  - "I want each word to fall from above and stack into a centered paragraph"
  - "multi-word headline that builds its layout visibly"
  - "composed block of text forming word by word as they land"
  - "viewer sees a title assembled like building blocks coming down"
---

<ComponentPreview name="short-slide-down" />

<InstallBlock name="short-slide-down" />

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { ShortSlideDown } from "@/components/remocn/short-slide-down";

const ShortSlideDownScene = () => (
  <ShortSlideDown text="Build from above." entryOffset={28} />
);

export const RemotionRoot = () => (
  <Composition
    id="ShortSlideDown"
    component={ShortSlideDownScene}
    durationInFrames={60}
    fps={30}
    width={1280}
    height={720}
  />
);
```

Each word drops in from above onto its own line and pushes the existing words down so the growing stack stays vertically centered — the words split onto separate lines, best for short three-word headings.

This is a layout-aware effect — it measures word heights to keep the stack centered, so it works best with short headings.

### With Backdrop

The component renders transparent — supply the background via `Backdrop`. It ships single-theme; edit the copied file to re-theme colors.

Pair with `Backdrop` to place the text inside a full-frame fill with a rounded, shadowed content frame:

```tsx
import { Composition } from "remotion";
import { ShortSlideDown } from "@/components/remocn/short-slide-down";
import { Backdrop } from "@/components/remocn/backdrop";

const ShortSlideDownScene = () => (
  <Backdrop fill={{ type: "color", value: "#ffffff" }}>
    <ShortSlideDown text="Build from above." entryOffset={28} />
  </Backdrop>
);

export const RemotionRoot = () => (
  <Composition
    id="ShortSlideDown"
    component={ShortSlideDownScene}
    durationInFrames={60}
    fps={30}
    width={1280}
    height={720}
  />
);
```

<PropsTable title="Props"
  rows={[
    {
      name: "text",
      type: "string",
      required: true,
      description: "The phrase to build. Each word becomes its own line; best with short three-word phrases.",
    },
    {
      name: "entryOffset",
      type: "number",
      default: "28",
      description: "How far in pixels each incoming word starts above its line before dropping in.",
    },
    {
      name: "fontSize",
      type: "number",
      default: "72",
      description: "Font size in pixels",
    },
    {
      name: "fontWeight",
      type: "number",
      default: "600",
      description: "CSS font-weight",
    },
    {
      name: "color",
      type: "string",
      default: "\"#171717\"",
      description: "Text color (any valid CSS color)",
    },
    {
      name: "className",
      type: "string",
      description: "Optional className passed to the stack container",
    },
  ]}
/>