Skip to content
Interactive

InteractiveGlobe

A dotted Earth with real continents, drawn on a canvas with no 3D library. It turns by itself, drags with inertia, and arrow keys turn it too. Pins pulse and carry their names.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
markersGlobeMarker[][]Pins: lat, lng and label. Each stays named for screen readers.
speednumber6Degrees per second when left alone. 0 stands still.
startnumber78Longitude facing you at the start.
tiltnumber15Latitude facing you at the start.
colorstring"#a78bfa"Land dots and outline.
markerColorstring"#f0abfc"Pins and their pulse.
labelstring"Globe"Read by screen readers.
classNamestring"aspect-square w-full"Replaces the size. The globe fits the smaller side.