Chapter 4Using Animation and Events with the Canvas

Placing shapes on the canvas, drawing on the canvas, and having text appear on the canvas offer many ways to use the canvas for a variety of image-based applications. However, all these techniques are static. You see them, and they can appear very creative or very functional, but they don’t move. Animation is a long-time standard item for web pages, and it is imperative that the canvas carries its weight in this arena. And you know what—it does!

This chapter focuses on animation and effects used with the canvas. You can do a lot, and what is shown here is by no means exhaustive. It’s more on the side of the tip of the iceberg. The Internet is filled with incredible examples. Searching for “canvas ...

Get HTML5 Multimedia Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.