Overheard

A question quote, "Who made our launch video?", answered by "I did. It's in the repo.". A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/overheard

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { Overheard } from "@/components/remocn/overheard";
 
const OverheardScene = () => <Overheard lines={[{ quote: "Who made our launch video?", name: "Mia Okafor, CEO" }, { quote: "I did. It’s in the repo.", name: "Leo Marsh, engineer" }]} highlight="It’s in the repo." />;
 
export const RemotionRoot = () => (
  <Composition
    id="Overheard"
    component={OverheardScene}
    durationInFrames={300}
    fps={60}
    width={1280}
    height={720}
  />
);

Two voices play as dialogue: the first quote types in word by word with natural pauses, its speaker tag fades in, then the second quote answers below, ending with a highlighted phrase. Pass lines (quote and name pairs) and highlight for the phrase to color; it fits the typing pace to the composition length.

Props12

PropTypeDefault
lines
OverheardLine[]DEFAULT_LINES

Quote and speaker name pairs, played in order.

highlight
string"It’s in the repo."

Phrase in the last quote to color with the accent.

stagger
number4

Frames between words of a quote.

pause
number26

Frames between one speaker's line and the next.

accent
string—

Color for the highlighted phrase; defaults to the theme accent.

ink
string—

Text color; overrides the theme ink.

background
string—

Stage fill color; pass "transparent" to overlay your own footage.

fontFamily
string"Young Serif"

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

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"

Color scheme; ships dark and light.

  • linesOverheardLine[]

    Quote and speaker name pairs, played in order.

    DefaultDEFAULT_LINES

  • highlightstring

    Phrase in the last quote to color with the accent.

    Default"It’s in the repo."

  • staggernumber

    Frames between words of a quote.

    Default4

  • pausenumber

    Frames between one speaker's line and the next.

    Default26

  • accentstring

    Color for the highlighted phrase; defaults to the theme accent.

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Stage fill color; pass "transparent" to overlay your own footage.

  • fontFamilystring

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

    Default"Young Serif"

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

    Color scheme; ships dark and light.

    Default"dark"