Analytics Funnel
An activation funnel chart steps down while a tooltip shows breakdowns. A free, MIT-licensed Remotion product scene.
$ pnpm dlx shadcn@latest add @remocn/analytics-funnelUsage
// src/Root.tsx
import { Composition } from "remotion";
import { AnalyticsFunnel } from "@/components/remocn/analytics-funnel";
const AnalyticsFunnelScene = () => (
<AnalyticsFunnel
title="Activation funnel"
variantLabel="New onboarding"
tooltipStep={2}
theme="dark"
/>
);
export const RemotionRoot = () => (
<Composition
id="AnalyticsFunnel"
component={AnalyticsFunnelScene}
durationInFrames={330}
fps={60}
width={1280}
height={720}
/>
);A funnel chart window grows its bars step by step, then a cursor clicks a variant toggle and the bars morph from control to variant with an uplift badge. A tooltip then opens on one step with a breakdown. Pass your own steps (control and variant counts), title and breakdown. It ships light and dark through the theme prop.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props19
| Prop | Type | Default |
|---|---|---|
| steps | FunnelStep[]DEFAULT_STEPS Funnel steps with label, event name, and control and variant counts. | |
| title | string"Activation funnel" Chart title in the window header. | |
| variantLabel | string"New onboarding" Label of the variant toggle the cursor clicks. | |
| tooltipStep | number2 Zero-based index of the step that gets the tooltip. | |
| breakdown | FunnelBreakdownRow[]DEFAULT_BREAKDOWN Tooltip rows: a label and its share from 0 to 1. | |
| dateRange | string"Last 30 days" Date range label shown in the header. | |
| totalLabel | string"Total conversion" Label above the total conversion figure in landscape. | |
| allUsersLabel | string"All users" Legend label of the chart before the variant is switched on. | |
| controlLabel | string"Control" Legend label of the dashed control line. | |
| theme | "light" | "dark""light" Light or dark window styling. | |
| accent | string"#3B5BFD" Accent color for the variant bars and toggle. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| fontFamily | string"Geist" 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. | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
| ground | GshPresetId— Gradient shader preset id for the background. | |
| groundParams | Partial<GradientParams>— Overrides for the shader preset parameters. | |
- stepsFunnelStep[]
Funnel steps with label, event name, and control and variant counts.
Default
DEFAULT_STEPS - titlestring
Chart title in the window header.
Default
"Activation funnel" - variantLabelstring
Label of the variant toggle the cursor clicks.
Default
"New onboarding" - tooltipStepnumber
Zero-based index of the step that gets the tooltip.
Default
2 - breakdownFunnelBreakdownRow[]
Tooltip rows: a label and its share from 0 to 1.
Default
DEFAULT_BREAKDOWN - dateRangestring
Date range label shown in the header.
Default
"Last 30 days" - totalLabelstring
Label above the total conversion figure in landscape.
Default
"Total conversion" - allUsersLabelstring
Legend label of the chart before the variant is switched on.
Default
"All users" - controlLabelstring
Legend label of the dashed control line.
Default
"Control" - theme"light" | "dark"
Light or dark window styling.
Default
"light" - accentstring
Accent color for the variant bars and toggle.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Geist" - 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 - groundGshPresetId
Gradient shader preset id for the background.
- groundParamsPartial<GradientParams>
Overrides for the shader preset parameters.