XML technologies / SVG / Using animations / Ways to implement animations / Universal attributes for animations

(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)

All the attributes below apply to every animation type: they are the universal animation attributes.

<defs>
  <animate xlink:href="#Kreis" dur="2s" begin="4s" from="6" to="3" attributeName="r" />
  <animateMotion xlink:href="#Kreis" dur="6s" path="M0 0 Q203 16 85 55" />    
  <animateColor xlink:href="#Kreis" dur="6s" from="red" to="yellow" attributeName="fill" />
  <animate xlink:href="#Kreis" dur="4s" from="3" to="6" attributeName="r" />
</defs>
...
<circle id="Kreis" cx="130" cy="80" r="3" style="fill:red;stroke:none" />

   

 

 

 

back to top