VincentGarreau / particles.js

A lightweight JavaScript library for creating particles
https://vincentgarreau.com/particles.js/
MIT License
29.08k stars 4.84k forks source link

Particle.js in the background #381

Open Georgeteeters opened 5 years ago

Georgeteeters commented 5 years ago

Hi, i have added a particular script on the background on my gamepanel, but the content is not right above of it. It's actually down below.

Example: Particles Content

I want: Content and particles in the background

I already added the following script but nothing #particles canvas { position: absolute; width: 100%; height: 100%; z-index: -1; }

torresandres commented 5 years ago

You need to target #particles and not the canvas itself. With your code you're sending canvas below your content but no the particles container.