Dot Map

A dotted world map lights up city by city while a counter rises to its final value. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/dot-map

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { DotMap } from "@/components/remocn/dot-map";
 
const DotMapScene = () => <DotMap count={142} label="countries" />;
 
export const RemotionRoot = () => (
  <Composition
    id="DotMap"
    component={DotMapScene}
    durationInFrames={270}
    fps={60}
    width={1280}
    height={720}
  />
);

A dotted world map fades in and cities light up from west to east, each with a ripple ring, while the count rises with them to its final value and a label sits beneath. Pass count, label and cities as { lon, lat } points. It ships light and dark through theme.

Props14

PropTypeDefault
count
number142

Final number shown once every city is lit.

label
string"countries"

Word shown beside the count.

cities
DotMapCity[]DEFAULT_CITIES

Points that light up, each with lon and lat.

accent
string"#3B5BFD"

Color of the ripple rings.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Manrope"

Typeface for the copy. Load the font in your project first.

fontWeight
number400

Weight of the count.

sweep
number66

Frames for the lights to sweep across the map, west to east.

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.

grain
booleantrue

Film grain over the scene.

theme
"dark" | "light""dark"

Light or dark palette.

speed
number1

Playback speed multiplier.

  • countnumber

    Final number shown once every city is lit.

    Default142

  • labelstring

    Word shown beside the count.

    Default"countries"

  • citiesDotMapCity[]

    Points that light up, each with lon and lat.

    DefaultDEFAULT_CITIES

  • accentstring

    Color of the ripple rings.

    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"Manrope"

  • fontWeightnumber

    Weight of the count.

    Default400

  • sweepnumber

    Frames for the lights to sweep across the map, west to east.

    Default66

  • 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

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"

  • speednumber

    Playback speed multiplier.

    Default1