Animation animation - little animation

Compared to pure CSS writing, animation effect is more beautiful, you can always change the node at random locations, animations look more "active." But the performance of consumption is also higher.
Further, since the animation function takes requestAnimationFrame package, and then stop and add nodes by calling the animation setInterval.
If you jump to other pages, during which the timer will continue to add nodes, and has remained in suspended animation state.
Return page again, the animation will gather, then the moment released, the browser may crash.
 
 
 
The above code, please add.
 
 
 
 

Guess you like

Origin www.cnblogs.com/8888zyj/p/10994912.html