Diminuendo

Huge counter climbs to 860,000 while each trailing digit group fades quieter than the last. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/diminuendo

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { Diminuendo } from "@/components/remocn/diminuendo";
 
const DiminuendoScene = () => <Diminuendo value={860000} label="frames rendered from the registry last month" ratio={0.8} />;
 
export const RemotionRoot = () => (
  <Composition
    id="Diminuendo"
    component={DiminuendoScene}
    durationInFrames={240}
    fps={60}
    width={1280}
    height={720}
  />
);

A big figure counts from from to value on a log-like curve, adding new leading digits as it passes each power of ten. Each digit group to the right is drawn smaller and fainter by ratio, and digits roll as they change. A caption fades in at the top left. Pass value, label, ratio and optionally prefix, suffix and separator. It ships light and dark through the theme prop.

Props16

PropTypeDefault
value
number860000

The final number the count lands on.

from
number0

The number the count starts from.

prefix
string""

Text placed before the number, such as a currency sign.

suffix
string""

Text placed after the number, such as a unit.

label
string"frames rendered from the registry last month"

Caption at the top left.

ratio
number0.8

Size of each lower digit relative to the one before it, 0.5 to 0.95.

separator
string","

Thousands separator character. Pass an empty string for none.

accent
string"#8ACE00"

Base colour of the digit ramp and the tint of the stage.

background
string—

Stage colour; pass 'transparent' to layer over other footage.

ink
string—

Text color; overrides the theme ink.

fontFamily
string"Arimo"

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

countDuration
number64

Frames the number takes to count up to its final value.

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; 1 is the designed pace.

theme
"dark" | "light""dark"

Ships light and dark.

  • valuenumber

    The final number the count lands on.

    Default860000

  • fromnumber

    The number the count starts from.

    Default0

  • prefixstring

    Text placed before the number, such as a currency sign.

    Default""

  • suffixstring

    Text placed after the number, such as a unit.

    Default""

  • labelstring

    Caption at the top left.

    Default"frames rendered from the registry last month"

  • rationumber

    Size of each lower digit relative to the one before it, 0.5 to 0.95.

    Default0.8

  • separatorstring

    Thousands separator character. Pass an empty string for none.

    Default","

  • accentstring

    Base colour of the digit ramp and the tint of the stage.

    Default"#8ACE00"

  • backgroundstring

    Stage colour; pass 'transparent' to layer over other footage.

  • inkstring

    Text color; overrides the theme ink.

  • fontFamilystring

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

    Default"Arimo"

  • countDurationnumber

    Frames the number takes to count up to its final value.

    Default64

  • 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; 1 is the designed pace.

    Default1

  • theme"dark" | "light"

    Ships light and dark.

    Default"dark"