To start an HTML5 Canvas animation, we can can continually request a new animation frame, and to stop the HTML5 Canvas animation, we can simply not request a new animation frame.
Instructions: Click on the canvas to start and stop the animation.
Code Editor
Modified on April 9th, 2013
by Eric Rowell