I'm using particle.js as background on a React project with Routes. When I "change page" on the website, this is pratticaly the DOM content which changes, and so the height of the page changes too depending of the elements which are loaded at this moment in the app container.
It should be usefull to have a kind of "refresh" method nativally in the lib.
If it exists, I didn't find one. Can you please enlightened me on the subject ?
Hi,
I'm using particle.js as background on a React project with Routes. When I "change page" on the website, this is pratticaly the DOM content which changes, and so the height of the page changes too depending of the elements which are loaded at this moment in the app container.
However, the particles canvas isn't self-adapative. So I needed to create a function (based on https://github.com/VincentGarreau/particles.js/issues/86). Here's the "bad way" I used to fix my problem :
It should be usefull to have a kind of "refresh" method nativally in the lib. If it exists, I didn't find one. Can you please enlightened me on the subject ?