Galton Stack
Dots fall through a Galton board into a bell curve, marked at 95%. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/galton-stackUsage
// src/Root.tsx
import { Composition } from "remotion";
import { GaltonStack } from "@/components/remocn/galton-stack";
const GaltonStackScene = () => (
<GaltonStack count={260} label="95% of renders under 2s" markerLabel="2s" />
);
export const RemotionRoot = () => (
<Composition
id="GaltonStack"
component={GaltonStackScene}
durationInFrames={175}
fps={30}
width={1280}
height={720}
/>
);Dots fall through a field of pegs into bins and stack into a bell curve, then the camera settles on a marker line and the label lands. Pass count of dots, marker (0 to 1 across the bins) and its markerLabel, plus a label for the claim. Ships dark and light via theme.
Props15
| Prop | Type | Default |
|---|---|---|
| count | number260 Number of falling dots, from 20 to 600. | |
| marker | number0.733 Marker position across the bins, from 0 to 1. | |
| label | string"95% of renders under 2s" Claim shown with the marker. | |
| markerLabel | string"2s" Short tag on the marker line. | |
| accent | string"#3B5BFD" Accent color for the hero element. | |
| 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 | number400 Weight of the big figure in the label. | |
| pourLength | number50 Frames over which the balls are released; the marker lands after the last one settles. | |
| 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" Dark or light palette. | |
| speed | number1 Playback multiplier. | |
- countnumber
Number of falling dots, from 20 to 600.
Default
260 - markernumber
Marker position across the bins, from 0 to 1.
Default
0.733 - labelstring
Claim shown with the marker.
Default
"95% of renders under 2s" - markerLabelstring
Short tag on the marker line.
Default
"2s" - accentstring
Accent color for the hero element.
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 big figure in the label.
Default
400 - pourLengthnumber
Frames over which the balls are released; the marker lands after the last one settles.
Default
50 - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - grainboolean
Film grain over the scene.
Default
true - theme"dark" | "light"
Dark or light palette.
Default
"dark" - speednumber
Playback multiplier.
Default
1