OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
2 "http://www.w3.org/TR/html4/loose.dtd"> | 2 "http://www.w3.org/TR/html4/loose.dtd"> |
3 | 3 |
4 <html lang="en"> | 4 <html lang="en"> |
5 <head> | 5 <head> |
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
7 <title>Animation of rotate property</title> | 7 <title>Animation of rotate property</title> |
8 <style type="text/css" media="screen"> | 8 <style type="text/css" media="screen"> |
9 div { | 9 div { |
10 -webkit-box-sizing: border-box; | 10 -webkit-box-sizing: border-box; |
(...skipping 30 matching lines...) Expand all Loading... |
41 #target, #ref { | 41 #target, #ref { |
42 -webkit-animation-name: bounce; | 42 -webkit-animation-name: bounce; |
43 -webkit-animation-duration: 2s; | 43 -webkit-animation-duration: 2s; |
44 -webkit-animation-iteration-count: infinite; | 44 -webkit-animation-iteration-count: infinite; |
45 -webkit-animation-direction: alternate; | 45 -webkit-animation-direction: alternate; |
46 -webkit-animation-timing-function: ease-in-out; | 46 -webkit-animation-timing-function: ease-in-out; |
47 } | 47 } |
48 | 48 |
49 @-webkit-keyframes bounce { | 49 @-webkit-keyframes bounce { |
50 from { | 50 from { |
51 -webkit-transform: translate(0px, 0px) scale(1) rotate(0deg); | 51 transform: translate(0px, 0px) scale(1) rotate(0deg); |
52 } | 52 } |
53 to { | 53 to { |
54 -webkit-transform: translate(75px, 25px) scale(2) rotate(45deg); | 54 transform: translate(75px, 25px) scale(2) rotate(45deg); |
55 } | 55 } |
56 } | 56 } |
57 </style> | 57 </style> |
58 </head> | 58 </head> |
59 <body> | 59 <body> |
60 <h1>CSS Animation of 'webkit-transform:' property for SVG</h1> | 60 <h1>CSS Animation of 'webkit-transform:' property for SVG</h1> |
61 | 61 |
62 <p>The SVG animation should be identical with the CSS one</p> | 62 <p>The SVG animation should be identical with the CSS one</p> |
63 | 63 |
64 <div class="column"> | 64 <div class="column"> |
65 <h2>SVG compound</h2> | 65 <h2>SVG compound</h2> |
66 <div class="container"> | 66 <div class="container"> |
67 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" | 67 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" |
68 viewBox="0 0 200 200" style="width:200px; height:200px;"> | 68 viewBox="0 0 200 200" style="width:200px; height:200px;"> |
69 <rect id="target" x="0" y="0" width="60" height="60" stroke="blue" fill=
"none"> | 69 <rect id="target" x="0" y="0" width="60" height="60" stroke="blue" fill=
"none"> |
70 </rect> | 70 </rect> |
71 </svg> | 71 </svg> |
72 </div> | 72 </div> |
73 | 73 |
74 <h2>CSS compound</h2> | 74 <h2>CSS compound</h2> |
75 <div class="container"> | 75 <div class="container"> |
76 <div class="final box" id="ref"> | 76 <div class="final box" id="ref"> |
77 </div> | 77 </div> |
78 </div> | 78 </div> |
79 </div> | 79 </div> |
80 | 80 |
81 </body> | 81 </body> |
82 </html> | 82 </html> |
OLD | NEW |