Free As In

A big word is glossed line by line, each new line pushing the last one up. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/free-as-in

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { FreeAsIn } from "@/components/remocn/free-as-in";
 
const FreeAsInScene = () => <FreeAsIn word="Free" glosses={["as in beer.", "as in speech.", "as in no seats.", "as in yours."]} />;
 
export const RemotionRoot = () => (
  <Composition
    id="FreeAsIn"
    component={FreeAsInScene}
    durationInFrames={150}
    fps={30}
    width={1280}
    height={720}
  />
);

A big word fades in on the left, then a series of short glosses slide in one at a time beside it, each pushing the previous gloss up and dimming it; the last gloss lands in the accent color. Pass word and a glosses array. The gloss pacing stretches to fill the composition, so give it about 150 frames.

Props12

PropTypeDefault
word
string"Free"

The big headline word.

glosses
string[]DEFAULT_GLOSSES

Short lines that follow the word; the last one is highlighted.

accent
string—

Color of the last gloss; defaults to the theme accent.

ink
string—

Text color; overrides the theme ink.

background
string—

Stage background color; overrides the theme ground.

fontFamily
string"Albert Sans"

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

fontWeight
number500

Weight of the big word.

hold
number46

Frames the last gloss holds before the end; the glosses before it share the rest.

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"

Light or dark palette.

  • wordstring

    The big headline word.

    Default"Free"

  • glossesstring[]

    Short lines that follow the word; the last one is highlighted.

    DefaultDEFAULT_GLOSSES

  • accentstring

    Color of the last gloss; defaults to the theme accent.

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Stage background color; overrides the theme ground.

  • fontFamilystring

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

    Default"Albert Sans"

  • fontWeightnumber

    Weight of the big word.

    Default500

  • holdnumber

    Frames the last gloss holds before the end; the glosses before it share the rest.

    Default46

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

    Light or dark palette.

    Default"dark"