Domino Run

Dominoes tip over in a chain, each bigger than the last, until the largest sets off a big stat. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/domino-run

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { DominoRun } from "@/components/remocn/domino-run";
 
const DominoRunScene = () => <DominoRun count={13} value="10x" caption="Every push tips a bigger one." />;
 
export const RemotionRoot = () => (
  <Composition
    id="DominoRun"
    component={DominoRunScene}
    durationInFrames={330}
    fps={60}
    width={1280}
    height={720}
  />
);

A row of dominoes, each taller than the one before, tips over one after another until the largest falls and the big value and caption fade in. Pass count (5 to 24) for the number of dominoes, plus value and caption. It ships light and dark through theme.

Props13

PropTypeDefault
count
number13

Number of dominoes, from 5 to 24.

value
string"10×"

The stat revealed when the last domino falls.

caption
string"Every push tips a bigger one."

Caption under the stat.

fontWeight
number500

Weight of the big value.

stagger
number1.2

Frames between dominoes as the row appears.

accent
string"#3B5BFD"

Accent color of the stat gradient.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Bricolage Grotesque"

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.

grain
booleantrue

Film grain over the scene.

theme
"dark" | "light""dark"

Light or dark palette.

speed
number1

Playback speed multiplier.

  • countnumber

    Number of dominoes, from 5 to 24.

    Default13

  • valuestring

    The stat revealed when the last domino falls.

    Default"10×"

  • captionstring

    Caption under the stat.

    Default"Every push tips a bigger one."

  • fontWeightnumber

    Weight of the big value.

    Default500

  • staggernumber

    Frames between dominoes as the row appears.

    Default1.2

  • accentstring

    Accent color of the stat gradient.

    Default"#3B5BFD"

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Bricolage Grotesque"

  • 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

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"

  • speednumber

    Playback speed multiplier.

    Default1