I’ve been working on my portfolio project, and I midway through the project, I wanted to change the background of my site to a particlesJS background. I have tried in several ways to do it, but it doesn’t seem to be working and gives the error
particles.js:1 Uncaught TypeError: Cannot read property 'getElementsByClassName' of null at window.particlesJS (particles.js:1) at script.js:9 in the console.
My code can be found in the branch
testing at https://github.com/ApCoder123/apcoder123.github.io/tree/testing
(Sorry Code’s a bit messy)