I am using particle.js as a background. I have managed to place on the background with use of z-index. I tried a suggestion on the github isseus page. The z-index and this:
"interactivity": {
"detect_on": "canvas",
This bit was already added in the default particle configuration.
The problem is similar as: this question. He said he solved it but looking at his codepen link it doesnt seem the same. There is no content above the the particles.
Mine current build: Github PROBLEM = the interactivity works just above the first content box and just below it. I have tried multiple edits with the width of elements and z-index. Also tried using a extra div for the other content.
How can I get the interactivity to work on the sides?
Try this in your html
Also if you want interactive controls while particles are in the background
set interactivity to window instead of canvas in particles.json file