Growth Line

An exponential growth curve draws through milestones to a 100k endpoint. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/growth-line

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { GrowthLine } from "@/components/remocn/growth-line";
 
const GrowthLineScene = () => (
  <GrowthLine value="100k" label="creators in the first year" steepness={4.6} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="GrowthLine"
    component={GrowthLineScene}
    durationInFrames={360}
    fps={60}
    width={1280}
    height={720}
  />
);

An exponential curve draws across the frame while the camera tracks the tip, popping each milestone along the way, then the endpoint value lands with a ring. Pass value, label, and milestones; tune the curve with steepness. Ships dark and light via theme.

Props15

PropTypeDefault
value
string"100k"

The number that lands at the tip.

label
string"creators in the first year"

Muted line under the value.

milestones
GrowthMilestone[]DEFAULT_MILESTONES

Points on the curve to call out, in order.

steepness
number4.6

How hard the curve bends upward: 2 = gentle, 6 = hockey stick.

accent
string"#3B5BFD"

Accent color for the hero element.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Schibsted Grotesk"

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

fontWeight
number400

Weight of the value.

strokeWidth
number3

Width of the curve, in pixels at 720p.

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.

grain
booleantrue

Film grain over the scene.

speed
number1

Playback multiplier.

theme
"dark" | "light""dark"

Dark or light palette.

  • valuestring

    The number that lands at the tip.

    Default"100k"

  • labelstring

    Muted line under the value.

    Default"creators in the first year"

  • milestonesGrowthMilestone[]

    Points on the curve to call out, in order.

    DefaultDEFAULT_MILESTONES

  • steepnessnumber

    How hard the curve bends upward: 2 = gentle, 6 = hockey stick.

    Default4.6

  • accentstring

    Accent color for the hero element.

    Default"#3B5BFD"

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

  • fontWeightnumber

    Weight of the value.

    Default400

  • strokeWidthnumber

    Width of the curve, in pixels at 720p.

    Default3

  • 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

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • speednumber

    Playback multiplier.

    Default1

  • theme"dark" | "light"

    Dark or light palette.

    Default"dark"