Hello everyone, I am using react-particles npm and I would like to put that as a background behind all of my components. The problem is when I do this the particles are on top of all of my components and nothing is clickable. (Except the nav-bar, for some reason)
my app.js looks like this
<div className="App">
<Background className="goesbehind" />
<Header data={this.state.resumeData.main}/>
<Resume data={this.state.resumeData.resume}/>
<Portfolio data={this.state.resumeData.portfolio}/>
<About data={this.state.resumeData.main}/>
<Footer data={this.state.resumeData.main}/>
</div>
and my css rule is
.goesbehind {
z-index: -1 !important;
}
Visually it’s fine, but not being able to click anything on the page is a big issue.
My project is on my local machine so I put it on codesandbox: https://codesandbox.io/s/reverent-kalam-dzoiz
The app isn’t made for it so you can’t see it displayed, but you can view my full code there.
Thanks in advance for all your help.