Packed Count

A counter climbs with digits packing tight, then a blue fill sweeps across it under a caption. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/packed-count

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { PackedCount } from "@/components/remocn/packed-count";
 
const PackedCountScene = () => <PackedCount value={41900} from={120} label="replays on a single launch clip" />;
 
export const RemotionRoot = () => (
  <Composition
    id="PackedCount"
    component={PackedCountScene}
    durationInFrames={260}
    fps={60}
    width={1280}
    height={720}
  />
);

Digits rise out of a mask as the counter climbs from a small start, packing tight and gaining a place each time a new digit joins. A caption slides in above at the start, and once the count lands a blue fill sweeps across the figure digit by digit. Pass value, from and label; accent recolors the fill. It ships light and dark through theme.

Props14

PropTypeDefault
value
number41900

The number the count lands on.

from
number120

Starting number the count climbs from.

countLength
number64

Frames the count takes to climb to its value; the fill sweep follows it.

prefix
string""

Text before the number.

suffix
string""

Text after the number.

label
string"replays on a single launch clip"

Caption above the number.

accent
string—

Color of the final fill sweep; defaults to a sky blue.

ink
string—

Text color; overrides the theme ink.

background
string—

Stage background color; overrides the theme ground.

fontFamily
string"Figtree"

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.

  • valuenumber

    The number the count lands on.

    Default41900

  • fromnumber

    Starting number the count climbs from.

    Default120

  • countLengthnumber

    Frames the count takes to climb to its value; the fill sweep follows it.

    Default64

  • prefixstring

    Text before the number.

    Default""

  • suffixstring

    Text after the number.

    Default""

  • labelstring

    Caption above the number.

    Default"replays on a single launch clip"

  • accentstring

    Color of the final fill sweep; defaults to a sky blue.

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

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