Examples Examples Boolean Operations Candy Crash Satie Liked To Draw HTML5 Canvas Tutorial: An Introduction Interested in CSS animation? Check out Creating Animations with CSS, a complete course on CSS Transitions and Keyframes animation by expert web developer Donovan Hutchinson, available for SitePoint members. For a sample of HTML5 canvas animations, watch Illustrations with the HTML5 Canvas below, it’s one video in our Start Animating with the HTML5 Canvas mini course. One of the most important instruments in a painter’s toolkit is their canvas.
progressive <canvas> pie charts Peity (sounds like deity) is a jQuery plugin that converts an element's content into a <svg> mini pie 2/5 donut 5,2,3 line 5,3,9,6,5,9,7,3,5,2 or bar chart 5,3,9,6,5,9,7,3,5,2 and is compatible with any browser that supports <svg>: Chrome, Firefox, IE9+, Opera, Safari. Download version 3.2.1 Uncompressed 8.7Kb jquery.peity.js HTML5 Canvas: Animation To draw animations on an HTML5 canvas you need to draw and redraw the frames of the animation on the canvas. You need to do so really quickly to make the many images look like an animation. To get the best performance for your animation, you should use the requestAnimationFrame call back function on the window object. You call this function and pass as parameter another function to be called when the browser is ready to draw the next frame in the animation. By letting the browser signal your application when the browser is ready to draw the next frame, the browser can enable hardware acceleration for your animation, as well as coordinate the frame redrawing with other redrawing activities in the browser.