Waitlist Swarm

Cursors and avatar dots swarm in from the edges to form a logo while a waitlist counter rolls up. A free, MIT-licensed Remotion social video animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/waitlist-swarm

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { WaitlistSwarm } from "@/components/remocn/waitlist-swarm";
 
const WaitlistSwarmScene = () => (
  <WaitlistSwarm value={12480} label="on the waitlist" count={760} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="WaitlistSwarm"
    component={WaitlistSwarmScene}
    durationInFrames={350}
    fps={60}
    width={1280}
    height={720}
  />
);

Hundreds of dots and cursors fly in along curved paths from beyond the frame and settle into the outline and fill of a shape, while a counter climbs to value beside it with a label; a pulse ripples out when the last one lands. Pass shape (SVG path data, or parts with an accent flag) to swap the default R mark. Ships dark and light via theme.

The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.

Props16

PropTypeDefault
shape
string | SwarmShapePart[]DEFAULT_SHAPE

SVG path data to form, or parts where `accent: true` uses the accent.

value
number12480

Final number the counter rolls up to.

label
string"on the waitlist"

Caption beside the counter.

count
number760

How many particles form the shape.

dotSize
number1

Size of each dot, as a multiple of the default.

pulse
booleantrue

Ripple of accent light across the swarm once it has packed.

accent
string"#3B5BFD"

Color of accent-flagged shape parts and the glow.

ink
string—

Color of the counter; overrides the theme ink.

background
string—

Solid fill in place of the gradient ground; 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.

speed
number1

Playback speed multiplier for the whole timeline.

theme
"dark" | "light""dark"

Color scheme. Ships dark and light.

ground
GshPresetId—

gradients.sh preset id for the animated ground.

groundParams
Partial<GradientParams>—

Overrides for the ground shader parameters.

  • shapestring | SwarmShapePart[]

    SVG path data to form, or parts where `accent: true` uses the accent.

    DefaultDEFAULT_SHAPE

  • valuenumber

    Final number the counter rolls up to.

    Default12480

  • labelstring

    Caption beside the counter.

    Default"on the waitlist"

  • countnumber

    How many particles form the shape.

    Default760

  • dotSizenumber

    Size of each dot, as a multiple of the default.

    Default1

  • pulseboolean

    Ripple of accent light across the swarm once it has packed.

    Defaulttrue

  • accentstring

    Color of accent-flagged shape parts and the glow.

    Default"#3B5BFD"

  • inkstring

    Color of the counter; 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"Bricolage Grotesque"

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1

  • theme"dark" | "light"

    Color scheme. Ships dark and light.

    Default"dark"

  • groundGshPresetId

    gradients.sh preset id for the animated ground.

  • groundParamsPartial<GradientParams>

    Overrides for the ground shader parameters.