Mono Settle

Two lines set in monospace settle into proportional type, with the last words in the accent. A free, MIT-licensed Remotion text animation.

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

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { MonoSettle } from "@/components/remocn/mono-settle";
 
const MonoSettleScene = () => (
  <MonoSettle lines={["From your editor", "to the edit."]} highlight="the edit." />
);
 
export const RemotionRoot = () => (
  <Composition
    id="MonoSettle"
    component={MonoSettleScene}
    durationInFrames={250}
    fps={60}
    width={1280}
    height={720}
  />
);

The lines rise in monospace, a wave of morphing turns each glyph into proportional type, and highlight takes the accent color. Pass lines and highlight; it ships light and dark through theme.

Props12

PropTypeDefault
lines
string[]["From your editor", "to the edit."]

Lines of text shown top to bottom

highlight
string"the edit."

Words in the lines shown in the accent color

settleAt
number36

Frame the mono letters start settling into the sans.

sweep
number26

Frames the settle wave takes to cross a line.

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

Typeface the letters settle into. 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

  • linesstring[]

    Lines of text shown top to bottom

    Default["From your editor", "to the edit."]

  • highlightstring

    Words in the lines shown in the accent color

    Default"the edit."

  • settleAtnumber

    Frame the mono letters start settling into the sans.

    Default36

  • sweepnumber

    Frames the settle wave takes to cross a line.

    Default26

  • accentstring

    Accent color (any valid CSS color)

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Overrides the theme's stage color

  • fontFamilystring

    Typeface the letters settle into. Load the font in your project first.

    Default"Geist"

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