Cue Word

Kinetic type lines where one cue word lands in color, then the whole line slides, drops, lifts or cuts away. A free, MIT-licensed Remotion transition.

Installation
$ pnpm dlx shadcn@latest add @remocn/cue-word

Usage

tsx
// 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={420}
    fps={60}
    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.

Props12

PropTypeDefault
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

ink
string—

Text color; overrides the theme ink.

background
string—

Base field color; pass transparent to composite over footage

fontFamily
string"Syne"

Typeface for the copy. Load the font in your project first.

fontWeight
number500

Weight of the lines; Syne is loaded at 400 and 500.

stagger
number3

Frames between words as the first line rises.

hold
number36

Frames the last line holds at the end; the remaining time is split between the lines for reading.

scale
number1

Size of the foreground around the frame's center; the background stays put.

delay
number0

Frames to hold the first frame before anything moves.

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

    DefaultDEFAULT_SCENES

  • accentstring

    Accent color for cue words and the accent field

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Base field color; pass transparent to composite over footage

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Syne"

  • fontWeightnumber

    Weight of the lines; Syne is loaded at 400 and 500.

    Default500

  • staggernumber

    Frames between words as the first line rises.

    Default3

  • holdnumber

    Frames the last line holds at the end; the remaining time is split between the lines for reading.

    Default36

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback multiplier for the whole timeline

    Default1

  • theme"dark" | "light"

    Light or dark palette

    Default"dark"