SVG – Learning by Coding

[ g_animateMotion.svg --> Grafik anzeigen ]

 1: <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 2: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
 3:   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
 4:   <!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
 5: ]>
 6: 
 7: <!-- SVG Learning by Coding http://www.datenverdrahten.de/svglbc/ -->
 8: <!--    AuthorDrThomas Meinike 04/03 thomas@handmadecode.de     -->
 9: 
10: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
11: 
12:   <title>SVG Learning by Coding</title>
13:   <desc>SVG-Spezifikation in Beispielen</desc>
14: 
15:   <text x="20" y="30" style="fill: #000; font-size: 24px">
16:     Animation einer Gruppe von Objekten</text>
17: 
18:   <path d="M 100,150 L 300,80 A 100,130 0 0,1 300,230 Z"
19:     style="fill: none; stroke: #CCC; stroke-width: 1px"/>
20: 
21:   <g>
22:     <rect x="0" y="0" width="30" height="20" style="fill: #00C"/>
23:     <circle cx="0" cy="0" r="10" style="fill: #F00"/>
24:     <animateMotion begin="0s" dur="10s" repeatDur="indefinite"
25:       path="M 100,150 L 300,80 A 100,130 0 0,1 300,230 Z"/>
26:   </g>
27: 
28:   <text x="60" y="280">Die aus Kreis und Rechteck gebildete Objektgruppe wird</text>
29:   <text x="60" y="300">gemeinsam animiert (animateMotion ist Kindelement von g).</text>
30: 
31: </svg>

[zum Anfang]