Skip to content
3D & Experimental

GlobeMotion

The night side of the Earth with real continents. City lights glow, the sun line sits across it, and lights fly the routes you give it. Runs by itself, nothing to drag. WebGL, no three.js.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
routesGlobeRoute[]5 sample routesEach has from and to, both [latitude, longitude].
speednumber7Degrees it turns each second.
centernumber70Longitude facing you at the start.
tiltnumber16Degrees the north pole leans toward you.
colorstring"#a78bfa"Six-digit hex colour of the land and the air around it.
seastring"#120f2e"Six-digit hex colour of the sea.
flightstring"#fde68a"Six-digit hex colour of the routes and the city lights.
labelstring"A turning globe with flights between cities"Name read out by screen readers.
classNamestring"aspect-square w-96"Set the size here.