Leaner, Meaner, Faster Animations with requestAnimationFrame

This sample ports the example used in this HTML5Rocks article by Paul Lewis about correctly using requestAnimationFrame for your animations.

Use the up and down keys on your keyboard to activate the animation.

Read the source.

See all samples.