Closed ffan0811 closed 6 years ago
As you can see in this demo I cannot reproduce the issue.
However I image it is due to component's update lifecycle:
When the component which contains the
It probably is the same issue as #50 and #43.
You can try wrapping the Particles component into another component (wrapper) and control its shouldComponentUpdate or a PureComponent.
Thank you so much! I should've looked up more carefully before I asked. Thank you for the fast and clear answer.
You are welcome 😊
There is a section that i want to make it position:fixed so that when i scroll down, i still can see the particles.
the class, 'wrapper', has this style
However, When I scroll down, the particles update themseleves, new angles, new location etc. you know, when you refresh pages, the particles set differently because it sets randomly. I want them to be fixed. I dont understand why it updates itself. please help me :'(