Dot globe
ProA sphere of points that turns, with the far side dimmed.
When to use
- A locations or coverage section that needs a globe and no map tiles.
- A hero object that can turn slowly beside a headline.
When not to use
- A chart of real coordinates. The points are a sphere, not cities.
- A small icon. The dots need room or the far side disappears.
Usage
- Copy the prompt and set the point count, tilt, and turn speed.
- Render it on a canvas that fills a square box.
- Cap the device pixel ratio at 2 and stop the turn while the canvas is off screen.
example.tsx
1import { DotGlobe } from "@/effects/dot-globe";2 3export function Preview() {4 return (5 <div className="h-64">6 <DotGlobe />7 </div>8 );9}