Cue Word
Kinetic type lines where one cue word lands in color, then the whole line slides, drops, lifts or cuts away
$ pnpm dlx shadcn@latest add @remocn/cue-wordUsage
// src/Root.tsx
import { Composition } from "remotion";
import { CueWord } from "@/components/remocn/cue-word";
const CueWordScene = () => (
<CueWord
scenes={[
{ text: "This line slides left.", cue: "slides left", cut: "slide" },
{ text: "The next one drops in.", cue: "drops in", cut: "drop" },
{ text: "And this one cuts.", cue: "cuts", cut: "cut" },
]}
/>
);
export const RemotionRoot = () => (
<Composition
id="CueWord"
component={CueWordScene}
durationInFrames={210}
fps={30}
width={1280}
height={720}
/>
);Each entry in scenes fills the frame with large centered type. The words rise in, the cue words land in the accent color, and the line then leaves with its cut: slide, drop, lift or an instant cut. Lines alternate between the base field and an accent field. The timeline is 176 frames at speed 1 with the default four lines; it ships light and dark.
Props5
| Prop | Type | Default |
|---|---|---|
| scenes | CueWordScene[]DEFAULT_SCENES Lines to show; each has text, optional cue words and an exit cut | |
| accent | string— Accent color for cue words and the accent field | |
| background | string— Base field color; pass transparent to composite over footage | |
| speed | number1 Playback multiplier for the whole timeline | |
| theme | "dark" | "light""dark" Light or dark palette | |
- scenesCueWordScene[]
Lines to show; each has text, optional cue words and an exit cut
Default
DEFAULT_SCENES - accentstring
Accent color for cue words and the accent field
- backgroundstring
Base field color; pass transparent to composite over footage
- speednumber
Playback multiplier for the whole timeline
Default
1 - theme"dark" | "light"
Light or dark palette
Default
"dark"