Joachim_B
(Joachim Brindeau)
July 20, 2022, 9:20pm
1
Hello everyone,
I’m working on a new website for my company and struggling to integrate particles.js into my website.
I’ve the id “particles-js” on my hero div and the code in my page header settings.
There is no error in the console, it’s just that nothing is happening.
Here is the live-link:
https://bloom-212129.webflow.io/
Here is the read-only link:
https://preview.webflow.com/preview/bloom-212129?utm_medium=preview_link&utm_source=designer&utm_content=bloom-212129&preview=4ef636a810e7ff1c168f8a72f9903701&workflow=preview
And here is my code :
https://codepen.io/JoachimBrindeau/pen/wvmdgEM
What did I do wrong?
Thank you very much for the help.
Joachim
PS: I’ll rename my divs later.
webdev
(Jeff Selser)
July 20, 2022, 9:36pm
2
Move your particles JavaScript from the head to the before body close area.
2 Likes
Joachim_B
(Joachim Brindeau)
July 21, 2022, 10:07am
3
Hello!
Thanks, it’s now showing!
I’m making progress but I have a new issue.
I’ve put my header inside the #particles-js div
I expected the particles to show as background but it’s now showing below the actual header instead of behind…
Here is my read-only link.
Any idea?
Thanks a lot !
Joachim_B
(Joachim Brindeau)
July 21, 2022, 5:30pm
4
Here is the code I used to solve the second issue:
<style>
#particles-js {
z-index: 10;
}
canvas.particles-js-canvas-el {
position: absolute;
top: 0;
}
</style>