Price Page

A list of fine-print pricing lines drops away one by one until a huge price and a note remain. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/price-page

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { PricePage } from "@/components/remocn/price-page";
 
const PricePageScene = () => <PricePage lines={["Starter, Pro, Team, Enterprise", "Per seat, per month", "Overage fees may apply"]} price="Free." />;
 
export const RemotionRoot = () => (
  <Composition
    id="PricePage"
    component={PricePageScene}
    durationInFrames={360}
    fps={60}
    width={1280}
    height={720}
  />
);

A small label tops a stack of fine-print pricing lines; the lines drop out one by one in a scrambled order until the list is gone, then a huge price lands and a note fades in beneath it. Pass lines, price and note. The timing stretches to the composition length, so give it about 180 frames. It ships light and dark through theme.

Props13

PropTypeDefault
label
string"Pricing"

Small label above the list.

lines
string[]DEFAULT_LINES

Fine-print lines that exit one by one.

price
string"Free."

The huge price that remains.

note
string"That’s the whole pricing page."

Closing line under the price.

hold
number40

Frames the full list holds before the lines start leaving.

accent
string—

Color of the price; 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.

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.

  • labelstring

    Small label above the list.

    Default"Pricing"

  • linesstring[]

    Fine-print lines that exit one by one.

    DefaultDEFAULT_LINES

  • pricestring

    The huge price that remains.

    Default"Free."

  • notestring

    Closing line under the price.

    Default"That’s the whole pricing page."

  • holdnumber

    Frames the full list holds before the lines start leaving.

    Default40

  • accentstring

    Color of the price; 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"

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