An interactive particle animation reacting to mouse movement in real time.
Live demo: kubafracek.github.io/constellation-particles
120 particles float across a dark canvas, connecting to each other and to the cursor with dynamic lines. Moving the mouse repels nearby particles and draws them into a constellation around the cursor.
Built with pure HTML, CSS and JavaScript — no libraries, no dependencies.
No build step required. Just open the file:
git clone https://github.com/KubaFracek/constellation-particles.git
cd constellation-particles
open particles.html
© 2026 Jakub Frąckiewicz