Closed EduardCRadd closed 11 months ago
You are trying to make an old sample work with the new v2, there are some errors in your code and you need to read the readme file about the loadFull
and particlesInit
.
But the main issue is the particles config that you are using:
{
background: {
color: {
value: "#161616"
}
},
fpsLimit: 120,
particles: {
number: {
value: 0
}
},
detectRetina: true,
pauseOnBlur: true
}
Literally, no particles on a dark grey background. It's correct that you can't see anything.
I'm trying to implement this https://codepen.io/idofugh/pen/KKrXJGE into a React website but I cannot seem to make it work.
First I've tried to create a TsParticles.jsx component like so:
but I had no luck making it work, so I though I'll just pop it in a JS file and import the file inside the app.js. Managed to get rid of all the errors and I've ended up with this:
The problem is, there are no particles visible. The
gets displayed but there are no particles.I apologise if this is not the place to ask this question.