Module Count

A block-pixel number snaps through stepped values on a gridded ground, then a short caption fades in. A free, MIT-licensed Remotion number animation.

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

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { ModuleCount } from "@/components/remocn/module-count";
 
const ModuleCountScene = () => <ModuleCount value={120} suffix="+" label="Scenes snapped to one grid" />;
 
export const RemotionRoot = () => (
  <Composition
    id="ModuleCount"
    component={ModuleCountScene}
    durationInFrames={260}
    fps={60}
    width={1280}
    height={720}
  />
);

A five-row block-pixel number snaps through a series of stepped values on a faint grid, each step morphing the modules, then locks on the final figure while a short caption fades in word by word. Pass value, optional prefix and suffix, and label; steps sets how many readings it snaps through. It ships light and dark through theme.

Props16

PropTypeDefault
value
number48

The number the count snaps to.

from
number0

Starting number of the first reading.

prefix
string""

Text before the number, such as a currency sign.

suffix
string""

Text after the number.

label
string"Scenes, every one snapped to a single grid"

Caption that fades in word by word.

steps
number11

How many stepped readings the count passes through.

accent
string—

Color of the digit modules; defaults to the theme accent.

ink
string—

Text color; overrides the theme ink.

background
string—

Stage background color; overrides the theme ground.

fontFamily
string"Archivo"

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

fontWeight
number450

Weight of the label, set on the variable font's weight axis.

stagger
number3

Frames between label words as they rise in.

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 snaps to.

    Default48

  • fromnumber

    Starting number of the first reading.

    Default0

  • prefixstring

    Text before the number, such as a currency sign.

    Default""

  • suffixstring

    Text after the number.

    Default""

  • labelstring

    Caption that fades in word by word.

    Default"Scenes, every one snapped to a single grid"

  • stepsnumber

    How many stepped readings the count passes through.

    Default11

  • accentstring

    Color of the digit modules; 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"Archivo"

  • fontWeightnumber

    Weight of the label, set on the variable font's weight axis.

    Default450

  • staggernumber

    Frames between label words as they rise in.

    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

  • speednumber

    Playback speed multiplier.

    Default1

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"