Chapter 4. Motion and Interactivity

Neither love nor fire can subsist without perpetual motion; both cease to live so soon as they cease to hope, or to fear.

François VI Duc de La Rochefoucauld

Although SVG can be a static image format suitable for illustrations, it was designed from its inception to be interactive and dynamic. There are two very important and radically different approaches to this dynamism: declarative animation and scripting. This chapter first introduces the powerful model of declarative animation that’s used by SVG, and then introduces scripting. Scripting will come easiest to those readers who already have some programming experience; therefore, the treatment here ...

Get Building Web Applications with SVG 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.