JulianLaval / canvas-particle-network

Simple animated particle network using Canvas and JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to place particles in background?

jaymutzafi opened this issue · comments

Something like this https://codepen.io/SebaGarciaM/pen/VeEXoj just with your look/motion etc'.

commented

This works for me: https://codepen.io/Matiboux/pen/ejxeML.
I had to disable interactivity, as it does not work properly when the cursor is over the .container element.

I know it's late, you probably found something that works or an alternative, but I just found and used the project. So I though it'd be good to update this issue with a solution.

commented

No problem! <3

To fix the interactivity not working when particles are in a background div, add the following to the overlay div:

.overlay {
    pointer-events: none;
    ... other styles ...
}