O'Reilly logo

Designing SVG Web Graphics by Andrew H. Watt

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

Defining Interactive

SVG graphics can be interactive, where they respond to a variety of user-initiated events, such as clicking a mouse button, moving the mouse over a particular part of an image, or zooming and panning an SVG image.

You can create interactivity on an SVG image by using events, such as a mouse click, to initiate SVG declarative animation or to initiate scripts. This chapter demonstrates the use of declarative SVG to create interactivity based on the SVG events that are accessible to declarative syntax.

One specific type of interactivity, linking to other pages, was described in Chapter 5, “Creating Navigation Bars,” in connection with the use of the SVG <a> element in navigation bars.

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