Technologies XML / SVG / Utiliser les animations / Possibilités de réalisation des animations / Attributs universels des animations

(Extrait de «Das Einsteigerseminar SVG — Webgrafiken mit XML» de Helma Spona)

Tous les attributs ci-dessous s’appliquent à chaque type d’animation : ce sont les attributs universels des animations.

<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" />

   

 

 

 

haut de page