Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particles dont interact while hovering or clicking #512

Open
Surobhan opened this issue Mar 9, 2023 · 1 comment
Open

Particles dont interact while hovering or clicking #512

Surobhan opened this issue Mar 9, 2023 · 1 comment

Comments

@Surobhan
Copy link

Surobhan commented Mar 9, 2023

Hello community, can anyone help with my problem? The particles don't interact while hovering or clicking.

I downloaded the Json directly from https://vincentgarreau.com/particles.js/

On that website the particles do interact. But on my website they don't.
The code for interactivity is placed on my website as following:

"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": true,
"mode": "repulse"
},
"onclick": {
"enable": true,
"mode": "repulse"
},
"resize": true
},
"modes": {
"grab": {
"distance": 400,
"line_linked": {
"opacity": 1
}
},
"bubble": {
"distance": 400,
"size": 40,
"duration": 2,
"opacity": 8,
"speed": 3
},
"repulse": {
"distance": 200,
"duration": 0.4
},
"push": {
"particles_nb": 4
},
"remove": {
"particles_nb": 2
}
}
},

@EricKelerman
Copy link

set the detect_on to "window"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants