VincentGarreau / particles.js

A lightweight JavaScript library for creating particles
https://vincentgarreau.com/particles.js/
MIT License
28.66k stars 4.81k forks source link

Change color on hover bubble #466

Open JoshuaKissel opened 3 years ago

JoshuaKissel commented 3 years ago

Hi Vincent,

Is it possible to use the onhover: bubble mode to change the color of the node/stroke?

Thanks!

matteobruni commented 3 years ago

You can’t with particles.js, but you can use tsParticles like in this sample: https://codepen.io/matteobruni/pen/dyGprLo

JoshuaKissel commented 3 years ago

Thanks @matteobruni ! Is it possible in tsParticles to, onhover, change the node to an image?

matteobruni commented 3 years ago

Thanks @matteobruni ! Is it possible in tsParticles to, onhover, change the node to an image?

Actually not but I think it could be easily added in the upcoming 2.0.0 release