Time Breakdown
A segmented time bar shrinks while 56% less time per video counts up. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/time-breakdownUsage
// src/Root.tsx
import { Composition } from "remotion";
import { TimeBreakdown } from "@/components/remocn/time-breakdown";
const TimeBreakdownScene = () => (
<TimeBreakdown
title="Where the time goes"
caption="less time per video"
before={[
{ label: "Editing", value: 62 },
{ label: "Rendering", value: 24 },
{ label: "Export", value: 14 },
]}
after={[
{ label: "Editing", value: 6 },
{ label: "Rendering", value: 24 },
{ label: "Export", value: 14 },
]}
/>
);
export const RemotionRoot = () => (
<Composition
id="TimeBreakdown"
component={TimeBreakdownScene}
durationInFrames={330}
fps={60}
width={1280}
height={720}
/>
);A segmented bar splits into time blocks, then the slow segment collapses and the bar shrinks while the saved percentage counts up with its caption. Pass before and after as lists of segments (label and value), and set title, beforeLabel, afterLabel and caption. Ships dark and light via theme.
Props18
| Prop | Type | Default |
|---|---|---|
| before | TimeSegment[]DEFAULT_BEFORE Segments of the original timeline, each with a label and value. | |
| after | TimeSegment[]DEFAULT_AFTER Segments after the change; same labels, smaller values. | |
| title | string"Where the time goes" Small heading over the bar. | |
| beforeLabel | string"Before" Label on the original bar. | |
| afterLabel | string"With remocn" Label on the shortened bar. | |
| caption | string"less time per video" Line under the saved percentage. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| fontFamily | string"Schibsted Grotesk" Typeface for the copy. Load the font in your project first. | |
| radius | number12 Corner radius of the bar, in px at 720p. | |
| stagger | number3 Frames between characters of the hero figure as it rolls in. | |
| 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. | |
| 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" Dark or light palette. | |
| speed | number1 Playback multiplier. | |
- beforeTimeSegment[]
Segments of the original timeline, each with a label and value.
Default
DEFAULT_BEFORE - afterTimeSegment[]
Segments after the change; same labels, smaller values.
Default
DEFAULT_AFTER - titlestring
Small heading over the bar.
Default
"Where the time goes" - beforeLabelstring
Label on the original bar.
Default
"Before" - afterLabelstring
Label on the shortened bar.
Default
"With remocn" - captionstring
Line under the saved percentage.
Default
"less time per video" - logoReact.ReactNode
Replaces the remocn mark.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Schibsted Grotesk" - radiusnumber
Corner radius of the bar, in px at 720p.
Default
12 - staggernumber
Frames between characters of the hero figure as it rolls in.
Default
3 - accentstring
Accent color for the hero element.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- 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"
Dark or light palette.
Default
"dark" - speednumber
Playback multiplier.
Default
1