Bubble Pack
Packed bubbles for categories grow around one big gradient bubble reading 420. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/bubble-packUsage
// src/Root.tsx
import { Composition } from "remotion";
import { BubblePack } from "@/components/remocn/bubble-pack";
const BubblePackScene = () => (
<BubblePack
highlight={0}
items={[
{ label: "Launch videos", value: 420 },
{ label: "Demos", value: 180 },
{ label: "Changelogs", value: 150 },
{ label: "Tutorials", value: 70 },
]}
/>
);
export const RemotionRoot = () => (
<Composition
id="BubblePack"
component={BubblePackScene}
durationInFrames={300}
fps={60}
width={1280}
height={720}
/>
);Category bubbles pop in and pack together; the highlighted one swells into a large gradient bubble while its value counts up. Pass items (label and value, up to 16) and highlight, the index of the hero item. Ships dark and light via theme.
Props13
| Prop | Type | Default |
|---|---|---|
| items | BubbleItem[]DEFAULT_ITEMS Up to 16 categories; bubble area follows value. | |
| highlight | number0 Index in items of the bubble that grows into the hero. | |
| stagger | number3 Frames between bubbles as they pop in. | |
| fontWeight | number500 Weight of the hero number. | |
| 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. | |
| grain | booleantrue Film grain over the scene. | |
| theme | "dark" | "light""dark" Dark or light palette. | |
| 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 multiplier. | |
- itemsBubbleItem[]
Up to 16 categories; bubble area follows value.
Default
DEFAULT_ITEMS - highlightnumber
Index in items of the bubble that grows into the hero.
Default
0 - staggernumber
Frames between bubbles as they pop in.
Default
3 - fontWeightnumber
Weight of the hero number.
Default
500 - 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" - grainboolean
Film grain over the scene.
Default
true - theme"dark" | "light"
Dark or light palette.
Default
"dark" - 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 multiplier.
Default
1