I have successfully integrated this lib into my Gatsby project. It works very well, except for the following:
When I click through the subpages the particles lose performance. The particles start to hang and no longer move as fluid as before.
This is my config file for the particle animation:
And this is how I use the particle. I put the particle inside a div with position relative. The content of my website is position absolute with a z-index to display above the particle div. The height of the particle container is based of the height of the content. It's calculated at the beginning.
I have successfully integrated this lib into my Gatsby project. It works very well, except for the following: When I click through the subpages the particles lose performance. The particles start to hang and no longer move as fluid as before.
This is my config file for the particle animation:
And this is how I use the particle. I put the particle inside a div with position relative. The content of my website is position absolute with a z-index to display above the particle div. The height of the particle container is based of the height of the content. It's calculated at the beginning.