O'Reilly logo

Sams Teach Yourself SVG in 24 Hours by Micah Laaker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required