Idea Set

Two ruled lines rise in light italic, then change typeface letter by letter while one phrase turns accent-colored. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/idea-set

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { IdeaSet } from "@/components/remocn/idea-set";
 
const IdeaSetScene = () => <IdeaSet lines={["Rough cut.", "Launch day."]} highlight="Launch day." />;
 
export const RemotionRoot = () => (
  <Composition
    id="IdeaSet"
    component={IdeaSetScene}
    durationInFrames={300}
    fps={60}
    width={1280}
    height={720}
  />
);

Each line rises out of a mask above a hairline rule in light italic. After hold frames the glyphs flip one by one to mono, then to medium sans, and the highlight phrase takes the accent color. Pass your own lines, and set highlight to text that appears in them. It ships light and dark.

Props12

PropTypeDefault
lines
string[]["Napkin sketch.", "Keynote opener."]

Lines of text, each set on its own ruled row.

highlight
string"Keynote opener."

Phrase that turns accent-colored in the final typeface; must match line text.

hold
number18

Frames to rest between each typeface change.

wave
number26

Frames each change of style takes to sweep across the text.

accent
string—

Accent color; overrides the theme accent.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"IBM Plex Sans"

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 speed multiplier for the whole timeline.

theme
"dark" | "light""dark"

Light or dark palette.

  • linesstring[]

    Lines of text, each set on its own ruled row.

    Default["Napkin sketch.", "Keynote opener."]

  • highlightstring

    Phrase that turns accent-colored in the final typeface; must match line text.

    Default"Keynote opener."

  • holdnumber

    Frames to rest between each typeface change.

    Default18

  • wavenumber

    Frames each change of style takes to sweep across the text.

    Default26

  • accentstring

    Accent color; overrides the theme accent.

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"IBM Plex Sans"

  • 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 for the whole timeline.

    Default1

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"