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 12/02 - 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: <text x="20" y="30" style="fill: #000; font-size: 24px">
15: Element animate</text>
16:
17: <rect x="50" y="50" width="0" height="80" style="fill: #F00">
18: <animate attributeName="width" attributeType="XML" begin="0s" dur="10s"
19: from="0" to="100" fill="freeze"/>
20: </rect>
21:
22: <rect x="50" y="150" width="100" height="80" style="fill: #00C">
23: <animate attributeName="x" attributeType="XML" begin="0s" dur="10s"
24: from="50" to="200" fill="freeze"/>
25: </rect>
26:
27: <circle cx="50" cy="300" r="10" style="fill: #FF0">
28: <animate attributeName="fill" attributeType="CSS" begin="mouseover"
29: dur="2s" from="#FF0" to="#F00" fill="freeze"/>
30: <animate attributeName="fill" attributeType="CSS" begin="mouseout"
31: dur="2s" from="#F00" to="#FF0" fill="freeze"/>
32: </circle>
33:
34: <text x="70" y="305">Kreis berühren!</text>
35:
36: </svg>
[zum Anfang]