Cosmic & Space
Solar Flare Pulse
Animated sun with pulsing radial corona, 60 radiating flare spikes, and 5 arcing prominences; clicking triggers a brighter solar burst.
canvasmedium complexityintense 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
Dark-mode hero backgrounds, space/sci-fi themes, loading screens, ambient displays needing organic high-energy motion.
When not to
Light backgrounds (hardcoded dark background). Contexts where overlaid text must be readable — flare motion competes with copy.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the sun's highlight ring to a paler tone by setting sg stops to '#fff2c0', '#D8D097', '#EEBAA0', and shift corona colors to rgba(216,208,151,...) tones.
Safe to edit
- flare spike count (M=60)
- sun radius scale (0.21)
- pulse speed (t*1.3)
- corona outer radius multiplier (2.4)
- kick decay rate (0.93)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard (reduce flag)
- visibilitychange pause/start handlers
- DPR-aware canvas sizing
Known limitations
- Background color hardcoded in both CSS (#1a0703) and canvas fillRect — must change both to retheme
- No reduced-motion fallback beyond a single static frame — animation fully stops rather than showing subtle version
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.