SVG – Learning by Coding
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: <!-- Author: Dr. Thomas Meinike 03/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: <g style="fill: #FFC; stroke: #00C; stroke-width: 2px">
19:
20: <rect x="70" y="60" width="100" height="80"/>
21: <circle cx="250" cy="100" r="30"/>
22: <polygon points="350,80,380,120,320,120"/>
23:
24: <set attributeName="stroke" attributeType="CSS" to="#F00" begin="mouseover"/>
25: <set attributeName="stroke-width" attributeType="CSS" to="5" begin="mouseover"/>
26: <set attributeName="stroke" attributeType="CSS" to="#00C" begin="mouseout"/>
27: <set attributeName="stroke-width" attributeType="CSS" to="2" begin="mouseout"/>
28:
29: </g>
30:
31: <text x="20" y="180">Der Rahmen der gruppierten Objekte
32: (Rechteck, Kreis und Dreieck)</text>
33: <text x="20" y="200">wird bei den Ereignissen mouseover bzw. mouseout
34: gemeinsam animiert.</text>
35:
36: </svg>
[zum Anfang]