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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.