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

Q&A

Q1:Why doesn't SVG use a frame-based animation system?
A1: SVG's animation system is largely based on SMIL (Synchronized Multimedia Integration Language), another W3C recommendation used to define animation in XML syntax. By using SMIL as a foundation, SVG can handle a variety of possible animation techniques, including (but not limited to) frame-based animation.
Q2:Instead of begin and end attributes, why not use a keyTimes attribute for every animation and interaction element?
A2: keyTimes provides a great means for defining multiple actions within one element. However, the set animation element cannot use this attribute. Also, the syntax for the keyTimes and values attributes results in code that requires some deciphering on the part of a developer. By splitting the attribute value (a point in time) from the attribute name (begin or dur), the developer has to think harder to understand the code. If the code can just as easily be written with begin and end attributes, you should seriously consider helping both yourself (and future developers who may have to read your code) by opting for the easier route.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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