Number Mosaic

A field of ticking digits dims while the cells forming the number light up, then a lockup appears beneath. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/number-mosaic

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { NumberMosaic } from "@/components/remocn/number-mosaic";
 
const NumberMosaicScene = () => <NumberMosaic value="10,000" name="acme" label="launch videos rendered" />;
 
export const RemotionRoot = () => (
  <Composition
    id="NumberMosaic"
    component={NumberMosaicScene}
    durationInFrames={280}
    fps={60}
    width={1280}
    height={720}
  />
);

A dim field of ticking digits fills the frame while the cells that form the number light up into a gradient and the rest fall back; a lockup of mark, product name and label then appears under the figure. Pass value as a string such as "10,000" or "2.4M", plus name and label, or logo to swap the mark. It ships light and dark through theme.

Props15

PropTypeDefault
value
string"10,000"

The number that emerges from the field. Supports digits and `, . + % k K M x`; other characters leave a gap.

label
string"launch videos rendered"

Text after the lockup, under the number.

name
string"remocn"

Product name in the lockup.

sweep
number26

Frames for the light to sweep across the number, left to right.

cellSize
number12

Width of one counter in the field, in pixels at 720p; smaller packs the field denser.

logo
React.ReactNode—

Replaces the default Remocn mark in the lockup.

accent
string"#3B5BFD"

Gradient accent for the lit cells.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Space Grotesk"

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 multiplier.

theme
"dark" | "light""dark"

Light or dark palette.

  • valuestring

    The number that emerges from the field. Supports digits and `, . + % k K M x`; other characters leave a gap.

    Default"10,000"

  • labelstring

    Text after the lockup, under the number.

    Default"launch videos rendered"

  • namestring

    Product name in the lockup.

    Default"remocn"

  • sweepnumber

    Frames for the light to sweep across the number, left to right.

    Default26

  • cellSizenumber

    Width of one counter in the field, in pixels at 720p; smaller packs the field denser.

    Default12

  • logoReact.ReactNode

    Replaces the default Remocn mark in the lockup.

  • accentstring

    Gradient accent for the lit cells.

    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"Space Grotesk"

  • 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 multiplier.

    Default1

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"