particles.js icon indicating copy to clipboard operation
particles.js copied to clipboard

Changing color on a div

Open victornewman opened this issue 5 years ago • 2 comments

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

victornewman avatar Apr 10 '19 10:04 victornewman

Hi Victor,

Did you manage to solve that issue?

zubair2001890 avatar Apr 30 '20 00:04 zubair2001890

You can find that feature here: https://github.com/matteobruni/tsparticles/pull/362 (1.16.0 will have it, alpha 3 is in testing)

matteobruni avatar Jun 03 '20 23:06 matteobruni