Cosmic & Space
Light Travel Delay
Amber wavefronts expand from a star, lighting up distance markers (1 AU, 1 ly, 100 ly) as each ring arrives. Click fires a manual pulse.
canvasmedium complexitysubtle motionclick
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Science/educational hero sections, space-themed dashboards, ambient dark-mode backgrounds where slow deliberate motion is wanted.
When not to
Light-background UIs (background hardcoded dark purple-black). Contexts needing fast visual feedback — motion is intentionally slow and sparse.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change wavefront color to cyan by replacing all 'rgba(255,179,71' with 'rgba(0,234,255', and increase SP from 0.40 to 0.60 to speed up light travel.
Safe to edit
- wavefront speed (SP=0.40)
- marker distances (MK array f values)
- marker labels ('1 AU', '1 ly', '100 ly')
- wavefront color (rgba(255,179,71,...))
- period between auto-emits (PERIOD calculation)
Keep intact
- DPR-aware canvas sizing
- visibilitychange pause/resume
- prefers-reduced-motion static fallback
- IIFE wrapper
Known limitations
- Background color hardcoded in CSS — must edit #0a0612 to change theme
- Reduced-motion shows a single static frame, no interactivity
- Marker labels may overlap on very small viewports
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.