OLD | NEW |
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/
SVG/1.1/DTD/svg11-tiny.dtd"> | 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/
SVG/1.1/DTD/svg11-tiny.dtd"> |
3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> | 3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> |
4 | 4 |
5 <!-- 'width' is a XML attribute, attributeType is set to "auto": this animation
runs. --> | 5 <!-- 'width' is a XML attribute, attributeType is set to "auto": this animation
runs. --> |
6 <rect width="10" height="100" fill="green"> | 6 <rect width="10" height="100" fill="green"> |
7 <animate id="an1" attributeType="auto" attributeName="width" fill="freeze" f
rom="10" to="100" begin="0s" dur="4s"/> | 7 <animate id="an1" attributeType="auto" attributeName="width" fill="freeze" f
rom="10" to="100" begin="0s" dur="4s"/> |
8 </rect> | 8 </rect> |
9 | 9 |
10 <!-- 'width' is a XML attribute, attributeType is set to "CSS". 'width' is not a
presentation attribute, so this animation won't run. --> | 10 <!-- 'width' is a XML attribute, attributeType is set to "CSS". 'width' is not a
presentation attribute, so this animation won't run. --> |
11 <rect x="150" width="100" height="100" fill="green"> | 11 <rect x="150" width="10" height="100" fill="green"> |
12 <animate id="an2" attributeType="CSS" attributeName="width" fill="freeze" fr
om="100" to="10" begin="0s" dur="4s"/> | 12 <animate id="an2" attributeType="CSS" attributeName="width" fill="freeze" fr
om="10" to="100" begin="0s" dur="4s"/> |
13 </rect> | 13 </rect> |
14 | 14 |
15 <!-- 'fill' is a presentation attribute, mapped to CSS, attributeType is set to
"auto": this animation runs. --> | 15 <!-- 'fill' is a presentation attribute, mapped to CSS, attributeType is set to
"auto": this animation runs. --> |
16 <rect y="150" width="100" height="100" fill="red"> | 16 <rect y="150" width="100" height="100" fill="red"> |
17 <animate id="an3" attributeType="auto" attributeName="fill" fill="freeze" fr
om="red" to="green" begin="0s" dur="4s"/> | 17 <animate id="an3" attributeType="auto" attributeName="fill" fill="freeze" fr
om="red" to="green" begin="0s" dur="4s"/> |
18 </rect> | 18 </rect> |
19 | 19 |
20 <!-- 'fill' is a presentation attribute, mapped to CSS, attributeType is set to
"XML": this animation runs. --> | 20 <!-- 'fill' is a presentation attribute, mapped to CSS, attributeType is set to
"XML": this animation runs. --> |
21 <rect x="150" y="150" width="100" height="100" fill="red"> | 21 <rect x="150" y="150" width="100" height="100" fill="red"> |
22 <animate id="an4" attributeType="XML" attributeName="fill" fill="freeze" fro
m="red" to="green" begin="0s" dur="4s"/> | 22 <animate id="an4" attributeType="XML" attributeName="fill" fill="freeze" fro
m="red" to="green" begin="0s" dur="4s"/> |
23 </rect> | 23 </rect> |
24 | 24 |
25 </svg> | 25 </svg> |
OLD | NEW |