I am attempting to add particle js as the background for my website. I have tried implementing this code snippet:
https://codepen.io/nikspatel/pen/aJGqpv
My CSS includes: position: fixed; z-index: -10;
in order to keep the particles fixed on the screen even when scrolling.
Initially, it works well. However, as I scroll down, it does not behave as expected. The particles stop following the cursor and disappear altogether after further scrolling. I also attempted setting it as an iframe background, but encountered issues with the particles getting stuck when moving the cursor over certain divs.
You can see the issue here: http://mycontinent.com.my/test
This is the desired effect I am aiming for:
Any suggestions or solutions are greatly appreciated. Thank you.