wonderfan / javascript

Explore the power of HTML,CSS and JavaScript
1 stars 0 forks source link

requestAnimationFrame #68

Closed wonderfan closed 8 years ago

wonderfan commented 8 years ago

The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint. The method takes as an argument a callback to be invoked before the repaint.

wonderfan commented 8 years ago

A good example: https://github.com/HubSpot/pace

wonderfan commented 8 years ago

Another example: https://github.com/usablica/progress.js