Abacus Count

Abacus beads slide along their rods to count up to 48,216. A free, MIT-licensed Remotion number animation.

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

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { AbacusCount } from "@/components/remocn/abacus-count";
 
const AbacusCountScene = () => <AbacusCount value={48216} label="renders this week" />;
 
export const RemotionRoot = () => (
  <Composition
    id="AbacusCount"
    component={AbacusCountScene}
    durationInFrames={330}
    fps={60}
    width={1280}
    height={720}
  />
);

Rods and beads fade in beside a large readout. Beads slide along each rod in springy steps, carrying over into the next rod, while the matching digit in the readout updates and the leading digit takes a gradient. A caption fades in after the last step. Pass value up to 999,999 and label. It ships light and dark through the theme prop.

Props13

PropTypeDefault
value
number48216

The final number, 0 to 999,999. More digits add more rods.

label
string"renders this week"

Caption under the readout.

separator
string","

Thousands separator in the readout.

accent
string"#3B5BFD"

Colour of the small marker dot before the caption.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Geist"

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

fontWeight
number300

Weight of the readout digits.

grain
booleantrue

Film grain over the scene.

theme
"dark" | "light""dark"

Ships light and dark.

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.

  • valuenumber

    The final number, 0 to 999,999. More digits add more rods.

    Default48216

  • labelstring

    Caption under the readout.

    Default"renders this week"

  • separatorstring

    Thousands separator in the readout.

    Default","

  • accentstring

    Colour of the small marker dot before the caption.

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

  • fontWeightnumber

    Weight of the readout digits.

    Default300

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Ships light and dark.

    Default"dark"

  • 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