Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

Declarative SVG Animations

You have already seen in this chapter several SVG animations. In this section, I will give you some more examples that will more fully illustrate some of the options available to you.

In SVG animations, you “declare” what you want to happen. You say which attribute you want to change, when you want the animation to start, how long it should take, what its starting value should be, what it's completion value should be, whether it repeats, and whether—when the animation has completed—the animated value is held or the original visual appearance is resumed.

So, suppose that we had code like the following:

<animate attributeName="x" begin="2s" dur="5s" 
from="50" to="800" repeatCount="5" fill="freeze"/>

We declare that ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book