Stat Sequence

Three large stats cut in one after another, then shrink together into a summary row. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/stat-sequence

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { StatSequence } from "@/components/remocn/stat-sequence";
 
const StatSequenceScene = () => (
  <StatSequence name="remocn" eyebrow="in numbers" beat={26} stats={[{ value: "10,000", unit: "+", label: "builders" }, { value: "99.9", unit: "%", label: "uptime" }]} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="StatSequence"
    component={StatSequenceScene}
    durationInFrames={170}
    fps={30}
    width={1280}
    height={720}
  />
);

Each stat rises in at monumental size with its label and detail and is replaced by the next one every beat frames. The final stat then shrinks and all stats settle into a row. Pass stats and name; the total length is about 74 + (stats - 1) × beat frames, and it ships light and dark through theme.

Props16

PropTypeDefault
stats
Stat[]DEFAULT_STATS

Stats to show, each with a value, optional unit, label and detail.

name
string"remocn"

Product name in the corner lockup.

eyebrow
string"in numbers"

Muted text after the lockup.

logo
React.ReactNode—

React node that replaces the default Remocn mark in the lockup.

beat
number26

Frames each stat owns before the next one cuts in.

hold
number42

Frames the last stat holds as a hero before the summary row assembles.

stagger
number1.6

Frames between digits as a number rolls in.

accent
string"#3B5BFD"

Accent color for highlights and small marks.

ink
string—

Text color; overrides the theme ink. Also paints the numbers solid in place of the gradient.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Geist"

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

grain
booleantrue

Film grain over the scene.

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"

Color theme, "dark" or "light".

  • statsStat[]

    Stats to show, each with a value, optional unit, label and detail.

    DefaultDEFAULT_STATS

  • namestring

    Product name in the corner lockup.

    Default"remocn"

  • eyebrowstring

    Muted text after the lockup.

    Default"in numbers"

  • logoReact.ReactNode

    React node that replaces the default Remocn mark in the lockup.

  • beatnumber

    Frames each stat owns before the next one cuts in.

    Default26

  • holdnumber

    Frames the last stat holds as a hero before the summary row assembles.

    Default42

  • staggernumber

    Frames between digits as a number rolls in.

    Default1.6

  • accentstring

    Accent color for highlights and small marks.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink. Also paints the numbers solid in place of the gradient.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Geist"

  • grainboolean

    Film grain over the scene.

    Defaulttrue

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

    Color theme, "dark" or "light".

    Default"dark"