Milestone Roll
A counter races through milestones, flashing at each, and lands on a final milestone poster. A free, MIT-licensed Remotion social video animation.
$ pnpm dlx shadcn@latest add @remocn/milestone-rollUsage
// src/Root.tsx
import { Composition } from "remotion";
import { MilestoneRoll } from "@/components/remocn/milestone-roll";
const MilestoneRollScene = () => (
<MilestoneRoll milestones={[100, 1000, 10000, 50000]} unit="signups" />
);
export const RemotionRoot = () => (
<Composition
id="MilestoneRoll"
component={MilestoneRollScene}
durationInFrames={360}
fps={60}
width={1280}
height={720}
/>
);A big counter races up to each milestone in turn; every hit flashes, shakes and shrinks the ring behind it. On the last milestone the number becomes a poster with the unit in serif italic and a wordmark. Pass ascending milestones and a unit; it ships dark and light via theme. The closing wordmark is the Remocn logo, swap RemocnLogo in the copied file.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props15
| Prop | Type | Default |
|---|---|---|
| milestones | number[][1000, 10000, 100000, 1000000] Milestones the counter races through, ascending. The last is the poster. | |
| unit | string"renders" What is being counted; shown on the poster and in the top label. | |
| run | number15 Frames the counter races to each milestone. | |
| hold | number14 Frames each milestone holds before the next race. | |
| fontFamily | string"Space Grotesk" Typeface for the copy. Load the font in your project first. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| theme | "dark" | "light""dark" Color scheme. Ships dark and light. | |
| ground | GshPresetId— gradients.sh preset id for the animated ground. | |
| groundParams | Partial<GradientParams>— Overrides for the ground shader parameters. | |
| 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 for the whole timeline. | |
| accent | string— Accepted for API consistency; the color comes from the ground. | |
- milestonesnumber[]
Milestones the counter races through, ascending. The last is the poster.
Default
[1000, 10000, 100000, 1000000] - unitstring
What is being counted; shown on the poster and in the top label.
Default
"renders" - runnumber
Frames the counter races to each milestone.
Default
15 - holdnumber
Frames each milestone holds before the next race.
Default
14 - fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Space Grotesk" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- logoReact.ReactNode
Replaces the remocn mark.
- theme"dark" | "light"
Color scheme. Ships dark and light.
Default
"dark" - groundGshPresetId
gradients.sh preset id for the animated ground.
- groundParamsPartial<GradientParams>
Overrides for the ground shader parameters.
- 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 - speednumber
Playback speed multiplier for the whole timeline.
Default
1 - accentstring
Accepted for API consistency; the color comes from the ground.