blob: 48a9e8b92f7318c47baf381bf03358f8749b8c66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
class="reftest-wait"
onload="setTimeAndSnapshot(101, true)">
<script xlink:href="../smil-util.js" type="text/javascript"/>
<!-- no animation -->
<g transform="translate(50 50) rotate(90)">
<path d="M-2 50h4v -90h4l -6 -10 -6 10h4z" fill="blue"/>
</g>
<!-- accumulate: sum -->
<g transform="translate(150 50)">
<path d="M-2 50h4v -90h4l -6 -10 -6 10h4z" fill="blue">
<animateTransform attributeName="transform"
type="rotate" from="0" to="45" begin="100s" dur="0.5s" fill="freeze"
repeatCount="4" accumulate="sum"/>
</path>
</g>
<!-- accumulate: none -->
<g transform="translate(250 50)">
<path d="M-2 50h4v -90h4l -6 -10 -6 10h4z" fill="blue">
<animateTransform attributeName="transform"
type="rotate" from="0" to="270" begin="100s" dur="0.75s" fill="freeze"
repeatCount="2"/>
</path>
</g>
<!-- additive: replace -->
<g transform="translate(50 150)">
<path d="M-2 50h4v -90h4l -6 -10 -6 10h4z" fill="blue"
transform="rotate(-90)">
<animateTransform attributeName="transform"
type="rotate" from="0" to="180" begin="100s" dur="2s" fill="freeze"/>
</path>
</g>
<!-- additive: sum (adding to base value) -->
<g transform="translate(150 150)">
<path d="M-2 50h4v -90h4l -6 -10 -6 10h4z" fill="blue"
transform="rotate(-90)">
<animateTransform attributeName="transform"
type="rotate" from="0" to="270" begin="100s" dur="1.5s" fill="freeze"
additive="sum"/>
</path>
</g>
<!-- additive: sum (adding to other animations) -->
<g transform="translate(250 150)">
<path d="M-2 50h4v -90h4l -6 -10 -6 10h4z" fill="blue">
<animateTransform attributeName="transform"
type="rotate" from="0" to="60" begin="100s" dur="2s" fill="freeze"/>
<animateTransform attributeName="transform"
type="rotate" from="0" to="60" begin="100s" dur="2s" fill="freeze"
additive="sum"/>
<animateTransform attributeName="transform"
type="rotate" from="0" to="60" begin="100s" dur="2s" fill="freeze"
additive="sum"/>
</path>
</g>
<!-- to animation -->
<g transform="translate(50 250)">
<path d="M-2 50h4v -90h4l -6 -10 -6 10h4z" fill="blue"
transform="rotate(45)">
<animateTransform attributeName="transform"
type="rotate" to="135" begin="100s" dur="2s" fill="freeze"/>
</path>
</g>
<!-- by animation -->
<g transform="translate(150 250)">
<path d="M-2 50h4v -90h4l -6 -10 -6 10h4z" fill="blue"
transform="rotate(45)">
<animateTransform attributeName="transform"
type="rotate" by="90" begin="100s" dur="2s" fill="freeze"/>
</path>
</g>
<!-- values animation -->
<g transform="translate(250 250)">
<path d="M-2 50h4v -90h4l -6 -10 -6 10h4z" fill="blue">
<animateTransform attributeName="transform"
type="rotate" values="0; 135; 0" begin="100s" dur="1.5s" fill="freeze"/>
</path>
</g>
</svg>
|