Ridgeline
Stacked ridgeline distributions per year, the latest one lit in gradient with a 2.6x stat. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/ridgelineUsage
// src/Root.tsx
import { Composition } from "remotion";
import { Ridgeline } from "@/components/remocn/ridgeline";
const RidgelineScene = () => (
<Ridgeline
labels={["2022", "2023", "2024", "2025"]}
highlightLabel="With remocn"
value="2.6×"
caption="more videos per team"
/>
);
export const RemotionRoot = () => (
<Composition
id="Ridgeline"
component={RidgelineScene}
durationInFrames={300}
fps={60}
width={1280}
height={720}
/>
);Grey ridgelines for each period draw in one after another, then a lit gradient ridge rises to the right and shifts the peak while the multiplier stat and caption land. Pass labels for the period rows, highlightLabel for the lit row, and value, caption, axisLabel and ticks for the text. Ships dark and light via theme.
Props16
| Prop | Type | Default |
|---|---|---|
| labels | string[]DEFAULT_LABELS Row labels for the grey ridgelines, oldest first. | |
| highlightLabel | string"With remocn" Label on the lit gradient ridge. | |
| value | string"2.6×" The hero stat that lands, such as 2.6x. | |
| caption | string"more videos per team" Line under the hero stat. | |
| axisLabel | string"videos per team, per month" Caption under the x axis. | |
| ticks | string[]DEFAULT_TICKS Tick labels along the x axis. | |
| stagger | number7 Frames between grey ridges rising. | |
| 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"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. | |
| speed | number1 Playback multiplier. | |
| theme | "dark" | "light""dark" Dark or light palette. | |
- labelsstring[]
Row labels for the grey ridgelines, oldest first.
Default
DEFAULT_LABELS - highlightLabelstring
Label on the lit gradient ridge.
Default
"With remocn" - valuestring
The hero stat that lands, such as 2.6x.
Default
"2.6×" - captionstring
Line under the hero stat.
Default
"more videos per team" - axisLabelstring
Caption under the x axis.
Default
"videos per team, per month" - ticksstring[]
Tick labels along the x axis.
Default
DEFAULT_TICKS - staggernumber
Frames between grey ridges rising.
Default
7 - 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
"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 - speednumber
Playback multiplier.
Default
1 - theme"dark" | "light"
Dark or light palette.
Default
"dark"