Frame-Based Animation

As mentioned earlier, SVG is quite different from Flash in terms of how it handles time and animation. Whereas Flash uses frames to establish its animation, SVG makes no assumptions as to how animation and time will unfold (other than the most basic assumption of a linear progression of time); the developer is left to make such determinations.

When the time-precise animation controls do not handle your requirements, you can still count on the tried-and-true nature of frame-based animation. Keep in mind, however, that the term frame is used loosely in SVG; no such “frame” exists. Frames will appear to be used by displaying groups at set intervals; whenever one group is displayed, the others are not.

To accomplish this, you ...

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.