Baton Word

Kinetic type where each line hands its last word to the next line as an accent-colored baton. A free, MIT-licensed Remotion transition.

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

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { BatonWord } from "@/components/remocn/baton-word";
 
const BatonWordScene = () => (
  <BatonWord
    scenes={[
      "The app is ready for launch.",
      "Launch day needs a film.",
      "Film it in code.",
    ]}
    theme="dark"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="BatonWord"
    component={BatonWordScene}
    durationInFrames={420}
    fps={60}
    width={1280}
    height={720}
  />
);

Each sentence in scenes rises in word by word. Its last word then lights up in the accent color, travels along an arc, and becomes the first word of the next sentence, so end each line with the word the next one starts with. The motion finishes at frame 177 at speed 1 with the default three lines, and longer or more lines take longer; it ships light and dark.

Props12

PropTypeDefault
scenes
string[]—

Sentences in order; each should end with the word the next starts with

accent
string—

Color of the baton word and the lead word of each next line

ink
string—

Text color; overrides the theme ink.

background
string—

Stage color; pass transparent to composite over your own footage

fontFamily
string"Syne"

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

fontWeight
number500

Weight of the lines.

stagger
number3

Frames between words as a line rises in.

travel
number24

Frames the baton word takes to travel to the next line.

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

  • scenesstring[]

    Sentences in order; each should end with the word the next starts with

  • accentstring

    Color of the baton word and the lead word of each next line

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Stage color; pass transparent to composite over your own footage

  • fontFamilystring

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

    Default"Syne"

  • fontWeightnumber

    Weight of the lines.

    Default500

  • staggernumber

    Frames between words as a line rises in.

    Default3

  • travelnumber

    Frames the baton word takes to travel to the next line.

    Default24

  • 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"