Number Split
A big total splits down a bracket into colored bars, each with its own count and label. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/number-splitUsage
// src/Root.tsx
import { Composition } from "remotion";
import { NumberSplit } from "@/components/remocn/number-split";
const NumberSplitScene = () => (
<NumberSplit total="300+" label="components" parts={[{ label: "animations", value: 120 }, { label: "transitions", value: 90 }]} />
);
export const RemotionRoot = () => (
<Composition
id="NumberSplit"
component={NumberSplitScene}
durationInFrames={300}
fps={60}
width={1280}
height={720}
/>
);The total sits large, a gradient bar slides in beneath it and splits into segments joined by a bracket, then each part counts up with its label. Pass total, label and parts; it ships light and dark through theme.
Props14
| Prop | Type | Default |
|---|---|---|
| total | string"300+" Large figure shown at the top, as text. | |
| label | string"components" Word shown next to the total. | |
| parts | SplitPart[]DEFAULT_PARTS Category counts, each drawn as a colored bar with a label. | |
| hold | number36 Frames the total holds in the middle before it moves up and splits. | |
| barHeight | number16 Thickness of the bar, in pixels at 720p. | |
| accent | string"#3B5BFD" Accent color for highlights and small marks. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Fraunces" 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. | |
| theme | "dark" | "light""dark" Color theme, "dark" or "light". | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
- totalstring
Large figure shown at the top, as text.
Default
"300+" - labelstring
Word shown next to the total.
Default
"components" - partsSplitPart[]
Category counts, each drawn as a colored bar with a label.
Default
DEFAULT_PARTS - holdnumber
Frames the total holds in the middle before it moves up and splits.
Default
36 - barHeightnumber
Thickness of the bar, in pixels at 720p.
Default
16 - accentstring
Accent color for highlights and small marks.
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
"Fraunces" - grainboolean
Film grain over the scene.
Default
true - 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 - theme"dark" | "light"
Color theme, "dark" or "light".
Default
"dark" - speednumber
Playback speed multiplier for the whole timeline.
Default
1