Mono Voice

Stacked lines shift voice mid-line from monospace to proportional type, ending on a large accent word. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/mono-voice

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { MonoVoice } from "@/components/remocn/mono-voice";
 
const MonoVoiceScene = () => (
  <MonoVoice text={"Same script.\nA whole new\ndelivery."} highlight="delivery." />
);
 
export const RemotionRoot = () => (
  <Composition
    id="MonoVoice"
    component={MonoVoiceScene}
    durationInFrames={130}
    fps={30}
    width={1280}
    height={720}
  />
);

Lines rise in monospace, a sweep shifts each glyph into a proportional voice, and highlight grows large in the accent color. Pass text (newlines split lines) and highlight; it ships light and dark through theme.

Props12

PropTypeDefault
text
string"Same script.\nA whole new\ndelivery."

Lines separated by newlines

highlight
string"delivery."

Final word set large in the accent color

voiceAt
number28

Frame the mono letters start finding their voice.

stagger
number4

Frames between lines rising in.

accent
string—

Accent color (any valid CSS color)

ink
string—

Text color; overrides the theme ink.

background
string—

Overrides the theme's stage color

fontFamily
string"Inter Tight"

Typeface for the copy; a variable font with a wght axis. 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 speed multiplier

theme
"dark" | "light""dark"

Ships light and dark palettes

  • textstring

    Lines separated by newlines

    Default"Same script.\nA whole new\ndelivery."

  • highlightstring

    Final word set large in the accent color

    Default"delivery."

  • voiceAtnumber

    Frame the mono letters start finding their voice.

    Default28

  • staggernumber

    Frames between lines rising in.

    Default4

  • accentstring

    Accent color (any valid CSS color)

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Overrides the theme's stage color

  • fontFamilystring

    Typeface for the copy; a variable font with a wght axis. Load the font in your project first.

    Default"Inter Tight"

  • 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 speed multiplier

    Default1

  • theme"dark" | "light"

    Ships light and dark palettes

    Default"dark"