Closed KenjiPcx closed 1 year ago
Since there's no particlesLoaded
function, you can get tsParticles running instances using tsParticles.domItem(<index>)
, importing tsParticles
like in the readme. I haven't found a way to pass functions to an Astro component, so that's the only way for now.
Oh nice, I'll try it out 😃 thanks
Tried this out and it works 🔥, closing the issue
Hi, I have been trying to switch themes using ts-particles, I have seen your codepen https://codepen.io/matteobruni/pen/MWopjRP for switching themes using vanilla js, but I am wondering how to do it in Astro, because I can't get the theme container