forever components

Cosmic & Space

Tidal Spaghettification

170 particles arc past a gravity well, stretching into a white-hot filament at perihelion. Pointer and click boost the tidal spread effect.

canvasmedium complexityintense 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 space or sci-fi hero backgrounds, physics visualizations, ambient loading screens with dramatic motion.

When not to

Light-background UIs (background hardcoded dark purple-black). Layouts where high-motion visuals compete with primary content.

Working with an AI agent

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

Change particle count N from 170 to 220, shift the color ramp to cyan/blue (replace #fff0e6, #ffb3a0, #ff6b6b, #8a3a6a with #e6f8ff, #a0d4ff, #6b9eff, #3a5a8a), and slow flow by reducing t+=0.0042 to t+=0.002.

Safe to edit

  • particle count (N=170)
  • flow speed (t += 0.0042)
  • color ramp (4 heat-threshold hex values)
  • perihelion radius (peri=42*S)
  • tidal spread strength (0.4+boost multiplier)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard with static fallback frame
  • visibilitychange stop/start pattern
  • DPR-aware canvas sizing

Known limitations

  • Background color hardcoded in CSS (#0a0510) — must change both CSS and canvas fillStyle to retheme
  • Gravity well position fixed relative to center — may clip on very wide or narrow viewports

canvasspacephysicsparticlesfilamentadditive-blendgenerative

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.