wufe / react-particles-js

Particles.js for React
https://rpj.bembi.dev/
MIT License
1.16k stars 106 forks source link

Change Params with respect to screen width #135

Closed zhuleyan closed 4 years ago

zhuleyan commented 4 years ago

I am trying to design a responsive website. And when the screen is of a mobile phone's size, I want the number of particles to be fewer. If it has the same number as that in a pc version, the particles will look very crowded. So is it possible that the params can be changed when the screen size changes? Thank you!

matteobruni commented 4 years ago

Hi @zhuleyan,

This code sandbox uses density property: https://codesandbox.io/s/amazing-thompson-ryhbx?file=/src/App.js

If you resize the window and refresh the page you see less particles.