Short Slide Down

Words drop in from above and stack into a centered multi-line composition

Installation

$ pnpm dlx shadcn@latest add @remocn/short-slide-down

Usage

// 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:

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}
  />
);

Props

PropTypeDefaultDescription
textrequired
stringThe phrase to build. Each word becomes its own line; best with short three-word phrases.
entryOffset
number28How far in pixels each incoming word starts above its line before dropping in.
fontSize
number72Font size in pixels
fontWeight
number600CSS font-weight
color
string"#171717"Text color (any valid CSS color)
className
stringOptional className passed to the stack container