forever components

Cosmic & Space

Logarithmic Zoom Journey

Nested labeled rings dilate outward from a glowing core through 10 cosmic scales (atom to cosmic web); pointer and click accelerate the zoom drift.

canvasmedium complexitymoderate motionpointer

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Space-themed hero backgrounds, science/data viz intros, ambient screensaver-style displays needing infinite-zoom metaphor.

When not to

Light-background layouts (background hardcoded dark navy). Contexts where label text competes with page content.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Change RUNGS labels and colors to geological timescales, set GAP to 2.0 to widen ring spacing, and increase baseR from U*0.052 to U*0.065.

Safe to edit

  • zoom speed (t increment divisor 520)
  • ring gap (GAP=1.7)
  • base ring size (baseR=U*0.052)
  • rung labels and colors (RUNGS array)
  • pointer boost strength (0.25 / cap 2.2)
  • dot count per rung (dots property)

Keep intact

  • DPR-aware canvas sizing
  • visibilitychange pause/resume
  • reduced-motion static-frame fallback
  • IIFE wrapper

Known limitations

  • Background color hardcoded in CSS and canvas fillRect — must change both to alter background
  • Reduced-motion fallback is a single static frame, not a fully static layout
  • ringAt() helper function is defined but unused — actual radius computed inline

canvaszoomspaceringslogarithmicambientgenerative

More Cosmic & Space components

  • Orbiting Planet SystemFour glowing planets orbit a radiant sun on tilted elliptical rings with depth-sorted rendering; the system drifts subtly toward the pointer.
  • Black-hole Accretion Swirl110 heat-colored particles spiral inward across a tilted accretion disk toward a glowing event horizon; pointer movement boosts swirl speed.
  • Twinkling Starfield115 multicolor stars twinkle via sine waves; sparkle crosses appear on larger stars; stars brighten near cursor. Static fallback for reduced-motion.
  • Spiral Galaxy Rotate115 stars form a two-armed spiral galaxy rotating around a violet radial-gradient core; pointer move briefly doubles spin speed.
  • Comet Streak LoopCyan and violet comets with glowing heads and gradient tails streak diagonally across a twinkling dark starfield; click spawns an extra comet (up to 5).
  • Ringed Planet RotateAmber gas giant with tilted Saturn-like rings slowly rotates over a twinkling starfield; pointermove adjusts ring tilt and light angle dynamically.