Skip to main content
100%

Fork of React & D3 Vibecoding Starter

✓ Published0🌍 Public
NNita
Last edited May 6, 2025
Created on May 6, 2025

This interactive galaxy visualization displays 2,000 stars arranged in a spiral pattern with a glowing center, representing stellar temperatures through color (white/blue for hot, orange for cool). Stars twinkle automatically, and hovering brightens them while clicking triggers an explosion animation. The code uses React with D3 v7's `scaleLinear` and `randomNormal` functions to position stars, while SVG filters with `feGaussianBlur` create the glow effect on the galactic center and spiral arms.

AI-generated description

Interactive Galaxy Visualization

This visualization represents a spiral galaxy with thousands of stars:

  • Stars are positioned in a spiral pattern with a glowing galactic center
  • Different colors represent star temperatures (white/blue for hot stars, yellow/orange for cooler stars)
  • Hover over stars to see them grow brighter and larger
  • Click on a star to trigger a supernova animation - the star will explode and reappear in a new location
  • Stars have varying sizes and opacities for a 3D depth effect
  • Some stars twinkle automatically for a more dynamic visualization
MIT Licensed

Similar vizzes