VincentGarreau / particles.js

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

Radius options for "repulse" #437

Open crutchcorn opened 4 years ago

crutchcorn commented 4 years ago

Currently, when using the onhover repulse mode, it's obvious that there's a diameter around the mouse to create the effect. It would be nice to see some options that allow us to grow/shrink this diameter

motion-work commented 3 years ago

As a workaround I use the tsparticles library.

there you're able to set the distance aka radius within the repulse mode.

repulse: {
  distance: 60,
  duration: 0.01,
  speed: 1,
}