№ 007

Globe

A cinematic night-side Earth with gold city lights and satellite trails, floating above a reflective pedestal.

Version
1.0.0
Download
4.0 MB · 8 files
Added
Oct 26, 2026
Built with
HTML, CSS, JS
Needs
three.js (CDN)
Tags
three.js, webgl, earth

Usage

Copy globe.css and globe.js (and assets/, if there is one) into your project, then:

Globe — a cinematic night-side Earth with gold city lights, a thin electric-blue atmosphere and
satellite trails, floating above a metal display pedestal on a reflective floor.

Usage (ES module, needs the "three" + "postprocessing" import map from index.html):
  import { Globe } from './globe.js';
  new Globe(element, { textures: './textures/', interactive: true });

For video/offline rendering pass { autoplay: false } and drive it yourself:
  await globe.ready; globe.setView([x, y, z], [tx, ty, tz]); globe.renderAt(seconds);

Earth and star textures: Solar System Scope (CC BY 4.0), based on NASA imagery.

Source

/* Globe — the container fills whatever box you give it; the canvas follows. */

.gl {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.gl:active { cursor: grabbing; }

.gl canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* soft vignette over the scene */
.gl::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 55%, rgba(1, 3, 8, 0.75) 100%);
}
All 8 files in the zip
  • globe.css
  • globe.js
  • index.html
  • textures/earth_clouds_4k.jpg
  • textures/earth_day_4k.jpg
  • textures/earth_night_4k.jpg
  • textures/earth_ocean_2k.jpg
  • textures/stars_milky_way_4k.jpg