Open ArthurGerbelot opened 8 years ago
A similar effect can also be achieved with css using pointer-events: none
on the foreground element.
@edulelis nice catch, but pointer-event
have a bad compatibility: http://caniuse.com/#feat=pointer-events
Hi,
I have updated my particules.js fine to dispatch the
mousemove
event from forward html elements to particles canvas. You can easly integrate it (I tried but i'm not autorized) on particules.js by adding:line 102
dispatched_events_selector: null,
line 1161
This update will add
pJS.interactivity.dispatched_events_selector
configuration (can be #id, .class or tag. As CSS, can by multiple), trigger themousemove
andclick
event, and dispatch to particules canvas.Fianl code available on my forked branch: https://github.com/ArthurGerbelot/particles.js
You can test it (only mousemove event) by adding this code browser console on the Git Example: