tsparticles / tsparticles

tsParticles - Easily create highly customizable JavaScript particles effects, confetti explosions and fireworks animations and use them as animated backgrounds for your website. Ready to use components available for React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Solid, Riot and Web Components.
https://particles.js.org
MIT License
7.29k stars 809 forks source link

Canvas position is stuck on fixed #5321

Closed Drey766 closed 3 months ago

Drey766 commented 3 months ago

Contact Details

andrewkimani766@gmail.com

What do you need?

The position of the canvas is stuck on fixed. I wanted to use the particles canvas on a single div in my website but it's stuck on the entire document. The canvas has a position: fixed! important style that cannot be overwritten. I've tried changing it using position: relative !important in the style prop and in a css file that but nothing worked. I even tried changing it using useRef but still nothing. How can I change the position of the canvas?

tsParticles Version

3.0.0

Code of Conduct

matteobruni commented 3 months ago

https://github.com/tsparticles/tsparticles/issues/5319#issuecomment-1994577498