Dot Globe

A dotted globe spins while arcs fly between cities and a counter ticks up with each landing. A free, MIT-licensed Remotion number animation.

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

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { DotGlobe } from "@/components/remocn/dot-globe";
 
const DotGlobeScene = () => <DotGlobe count={142} prefix="Live in" suffix="countries" />;
 
export const RemotionRoot = () => (
  <Composition
    id="DotGlobe"
    component={DotGlobeScene}
    durationInFrames={420}
    fps={60}
    width={1280}
    height={720}
  />
);

A dotted globe fades in and keeps rotating while accent arcs lift off one city and land on another along great circles; each landing pulses a ring, drops a labeled pin and ticks the counter up by one, ending on the final count in big type. Pass count, prefix, suffix and routes (pairs of { name, lat, lon } cities). It ships light and dark through theme.

Props15

PropTypeDefault
count
number142

Final counter value; it ticks up once per landed route.

prefix
string"Live in"

Text before the counter.

suffix
string"countries"

Text after the counter.

routes
GlobeRoute[]DEFAULT_ROUTES

Arcs to draw; each has a from city and a to city with name, lat and lon.

stagger
number20

Frames between one route taking off and the next.

flight
number32

Frames each arc takes to fly from city to city.

accent
string"#3B5BFD"

Color of the arcs, pins and rings.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Instrument Sans"

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.

grain
booleantrue

Film grain over the scene.

speed
number1

Playback multiplier.

theme
"dark" | "light""dark"

Light or dark palette.

  • countnumber

    Final counter value; it ticks up once per landed route.

    Default142

  • prefixstring

    Text before the counter.

    Default"Live in"

  • suffixstring

    Text after the counter.

    Default"countries"

  • routesGlobeRoute[]

    Arcs to draw; each has a from city and a to city with name, lat and lon.

    DefaultDEFAULT_ROUTES

  • staggernumber

    Frames between one route taking off and the next.

    Default20

  • flightnumber

    Frames each arc takes to fly from city to city.

    Default32

  • accentstring

    Color of the arcs, pins and 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"Instrument Sans"

  • 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

  • speednumber

    Playback multiplier.

    Default1

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"