Rank Climb
A ranked list reorders as the brand climbs from a low position to number one, with vote counts. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/rank-climbUsage
// src/Root.tsx
import { Composition } from "remotion";
import { RankClimb } from "@/components/remocn/rank-climb";
const RankClimbScene = () => (
<RankClimb brand="remocn" from={8} to={1} eyebrow="Product of the day" caption="on the leaderboard" />
);
export const RemotionRoot = () => (
<Composition
id="RankClimb"
component={RankClimbScene}
durationInFrames={350}
fps={60}
width={1280}
height={720}
/>
);The list builds, then the brand's row overtakes the rows above it one at a time, speeding up, until it lands at the target rank and the win callout settles. Pass items (label and votes), brand (a label from the list), from, to, eyebrow and caption; it ships light and dark through theme.
Props18
| Prop | Type | Default |
|---|---|---|
| items | RankItem[]DEFAULT_ITEMS Entries with label and vote count; the brand row is picked from these. | |
| brand | string"remocn" Label of the entry that climbs. | |
| from | number8 Starting rank of the brand, 1 is the top. | |
| to | number1 Final rank of the brand. | |
| eyebrow | string"Product of the day" Small line above the winning rank. | |
| caption | string"on Product Hunt" Line shown beside the final rank. | |
| climbAt | number28 Frame at which the brand starts to climb. | |
| finalSwap | number22 Frames for the final overtake into the top spot. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| 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"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" Color theme, "dark" or "light". | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
- itemsRankItem[]
Entries with label and vote count; the brand row is picked from these.
Default
DEFAULT_ITEMS - brandstring
Label of the entry that climbs.
Default
"remocn" - fromnumber
Starting rank of the brand, 1 is the top.
Default
8 - tonumber
Final rank of the brand.
Default
1 - eyebrowstring
Small line above the winning rank.
Default
"Product of the day" - captionstring
Line shown beside the final rank.
Default
"on Product Hunt" - climbAtnumber
Frame at which the brand starts to climb.
Default
28 - finalSwapnumber
Frames for the final overtake into the top spot.
Default
22 - logoReact.ReactNode
Replaces the remocn mark.
- 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
"Bricolage Grotesque" - 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"
Color theme, "dark" or "light".
Default
"dark" - speednumber
Playback speed multiplier for the whole timeline.
Default
1