• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

SVG Events

SVG provides an extensive range of events, which are listed in Chapter 16 of the SVG specification at http://www.w3.org/TR/SVG/. The most useful events are the click, mouseover, and mouseout events. You can also use the mousedown and mouseup events, but I find that I rarely use them.

Listing 11.1 shows the syntax for using a click event to begin an animation that uses a <set> element.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint