XML technologies / SVG / Using animations / Summary, questions and exercises
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
Summary
Define an animation by inserting an animation tag into the tag you want to animate.
You can change colors and attributes or move elements along a path.
The tags’ attributes determine how long an animation lasts and when it starts.
Questions and exercises
The following exercises form a single unit.
Create an SVG file and insert a 4 x 4 pixel square.
Fill the square with a color of your choice.
Insert a 10-second animation changing the fill from its current color to black.
Follow it with another animation that enlarges the square to 8 pixels within 5 seconds.
Add a line from 0/0 to 75/10 to the file.
Move the square along this line. The animation should last 8 seconds, and the square should remain at its endpoint afterward.
Copyright © verlag moderne industrie GmbH 2001
You may print the online version for your private use.
Otherwise, this chapter from “Das Einsteigerseminar SVG — Webgrafiken mit XML” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
verlag moderne industrie GmbH, Justus-von-Liebig-Straße 1, D-86899 Landsberg/Lech, fon ++49 (0) 81 91 / 125 – 0, leserservice(at)mi-verlag.de