Short Slide Down
Words drop in from above and stack into a centered multi-line composition
$ pnpm dlx shadcn@latest add @remocn/short-slide-downUsage
// 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}
/>
);Props6
| Prop | Type | Default |
|---|---|---|
| textrequired | string— The phrase to build. Each word becomes its own line; best with short three-word phrases. | |
| entryOffset | number28 How far in pixels each incoming word starts above its line before dropping in. | |
| fontSize | number72 Font size in pixels | |
| fontWeight | number600 CSS font-weight | |
| color | string"#171717" Text color (any valid CSS color) | |
| className | string— Optional className passed to the stack container | |
- textrequiredstring
The phrase to build. Each word becomes its own line; best with short three-word phrases.
- entryOffsetnumber
How far in pixels each incoming word starts above its line before dropping in.
Default
28 - fontSizenumber
Font size in pixels
Default
72 - fontWeightnumber
CSS font-weight
Default
600 - colorstring
Text color (any valid CSS color)
Default
"#171717" - classNamestring
Optional className passed to the stack container