particles.js
particles.js copied to clipboard
Changing color on a div
Hi Vincent, I really enjoy with your code first of all thanks,
I am not sure it is possible but I think just need to think a little bit creative, maybe someone can have any idea on my question. I want white background black particles which is very easy to create but also I want that particles will change color on a spesific div. For example a div include video on header but not covered full page, let's say 400x400 pixel box, small area of the header. Header will be full width and height of particles (which is black) as soon as they enter the area of video conteiner (div 400x400 box) they will turn to white.
Any idea?
Thanks for all who enjoy with coding... Victor
Hi Victor,
Did you manage to solve that issue?
You can find that feature here: https://github.com/matteobruni/tsparticles/pull/362 (1.16.0 will have it, alpha 3 is in testing)