particles.js icon indicating copy to clipboard operation
particles.js copied to clipboard

Radius options for "repulse"

Open crutchcorn opened this issue 5 years ago • 1 comments

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

crutchcorn avatar Apr 19 '20 03:04 crutchcorn

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,
}

motion-work avatar Apr 14 '21 10:04 motion-work