Hour 13. Interaction

It almost goes without saying: interactive elements often make for more engaging content than static, unmoving elements. SVG not only provides the language to define vector content display, but also the language to define how that content interacts with itself and other outside elements.

In SVG, animation and interaction controls are created using an appropriate element (such as set, animate, animateTransform, animateMotion, and animateColor). Though in some cases you can define an object's interactivity by locating an interactive element within an object's element, SVG does not require the object and the interactive control to be located next to each other in the code. This affords two very helpful benefits:

  • Reduced chance ...

Get Sams Teach Yourself SVG in 24 Hours 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.