forever components

Cosmic & Space

Aurora Curtain Flow

7 green and magenta aurora curtains ripple above a dark planetary limb; pointer nudges the bands sideways, click jolts them.

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

Dark-mode hero backgrounds, space/sci-fi themes, ambient screensaver displays, atmospheric loading states.

When not to

Light backgrounds (hardcoded dark theme). Content-heavy layouts where constant motion competes with reading.

Working with an AI agent

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

Change front curtain color to electric blue by replacing colA=[61,255,160] with colA=[0,180,255] and colB=[120,255,210] with colB=[80,220,255] in drawCurtain.

Safe to edit

  • curtain count (CUR=7)
  • front curtain color (colA/colB arrays in drawCurtain)
  • pointer nudge strength (nudge*W*0.06 multiplier)
  • planetary limb position (limbY=H*0.86)
  • star count (70)
  • curtain sway amplitude (amp range 0.04+0.07)

Keep intact

  • DPR-aware canvas sizing and setTransform
  • visibilitychange pause/start guards
  • reduced-motion static fallback (scene(2.3))
  • IIFE wrapper

Known limitations

  • Background and planetary limb colors are hardcoded — requires CSS and canvas edits to retheme
  • No aria role on canvas element
  • Click jolt decays quickly via nudge*=0.95 per frame

auroracanvasspaceambientpointergenerativebackground

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.