Beeswarm
Two dot swarms, before and after, settle on an axis showing 3.4 versus 10.6. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/beeswarmUsage
// src/Root.tsx
import { Composition } from "remotion";
import { Beeswarm } from "@/components/remocn/beeswarm";
const BeeswarmScene = () => (
<Beeswarm
count={200}
domain={[0, 14]}
axisLabel="launch videos shipped per quarter"
totalLabel="200 teams"
/>
);
export const RemotionRoot = () => (
<Composition
id="Beeswarm"
component={BeeswarmScene}
durationInFrames={300}
fps={60}
width={1280}
height={720}
/>
);A pour of dots falls onto an axis as one grey swarm, then splits into a before group and an after group that slide to their medians and label themselves. Pass before and after as groups (label, median, spread), count of dots, and the axis domain and axisLabel. Ships dark and light via theme.
Props18
| Prop | Type | Default |
|---|---|---|
| before | BeeswarmGroupDEFAULT_BEFORE Starting group with a label, median and spread. | |
| after | BeeswarmGroupDEFAULT_AFTER Improved group with a label, median and spread. | |
| count | number200 Number of dots in the swarm. | |
| domain | [number, number][0, 14] Axis range as a minimum and maximum. | |
| tickStep | number2 Spacing between axis ticks. | |
| axisLabel | string"launch videos shipped per quarter" Caption under the axis. | |
| totalLabel | string"200 teams" Label on the full swarm before it splits. | |
| split | number32 Frames each dot takes to cross from the mixed swarm to its group. | |
| fontWeight | number400 Weight of the two median numbers. | |
| 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"DM Sans" Typeface for the copy. Load the font in your project first. | |
| 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. | |
| speed | number1 Playback multiplier. | |
| theme | "dark" | "light""dark" Dark or light palette. | |
- beforeBeeswarmGroup
Starting group with a label, median and spread.
Default
DEFAULT_BEFORE - afterBeeswarmGroup
Improved group with a label, median and spread.
Default
DEFAULT_AFTER - countnumber
Number of dots in the swarm.
Default
200 - domain[number, number]
Axis range as a minimum and maximum.
Default
[0, 14] - tickStepnumber
Spacing between axis ticks.
Default
2 - axisLabelstring
Caption under the axis.
Default
"launch videos shipped per quarter" - totalLabelstring
Label on the full swarm before it splits.
Default
"200 teams" - splitnumber
Frames each dot takes to cross from the mixed swarm to its group.
Default
32 - fontWeightnumber
Weight of the two median numbers.
Default
400 - 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
"DM Sans" - 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 - speednumber
Playback multiplier.
Default
1 - theme"dark" | "light"
Dark or light palette.
Default
"dark"