XML technologies / SVG / Using animations / Ways to implement animations / Universal timing attributes
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
All animation tags have the following attributes controlling timing:
beginspecifies when the animation starts. Specify a time, hours and minutes, or the valueindefinite, which makes the start script-controlled. Time notation is explained under Specifying time values. The simplest case specifies the hours, minutes or seconds before starting, for example1s(one second),1h(one hour) or1min(one minute). Start times are always relative to when the SVG file finished loading.1stherefore starts the animation one second after loading. Several ways of specifying the start time are available.durspecifies the animation’s duration in seconds, minutes or hours, or useindefiniteto control duration through a script.endspecifies the animation’s end, also as a time value.minspecifies the minimum duration, a positive time value. The default is 0.maxspecifies the maximum duration, also positive and defaulting to 0.
Note:
The attributes min and max are not yet supported by Adobe SVG Viewer 1.0 or 2.0.
restartdetermines whether the animation can restart. Possible values arealways,whenNotActiveandnever. Withalwaysthe user can restart at any time. WithwhenNotActiverestarting is possible only after completion, and withneverrestarting is impossible.alwaysis the default.
Note:
Manual restarting also depends on the browser or plug-in. Adobe SVG Viewer, for example, can stop and resume an animation but cannot restart it without reloading.
repeatCountspecifies how many times the animation runs consecutively. Supply a number orindefinite, in which case repetition is controlled only by script. Fractional values are allowed; the final iteration then remains incomplete. The value must be greater than 0.repeatDursets the duration of all repetitions. Supply a time value orindefinite. If the time does not allow all iterations specified byrepeatCountto finish, the animation ends after the time specified byrepeatDur.fillspecifies what happens after completion. Possible values arefreezeorremove. Withfreezethe animated attribute retains its final value. Withremoveit returns to its initial value, the default behavior.
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
back to top