OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright 2012 Google Inc. All Rights Reserved. | 2 Copyright 2012 Google Inc. All Rights Reserved. |
3 | 3 |
4 Licensed under the Apache License, Version 2.0 (the "License"); | 4 Licensed under the Apache License, Version 2.0 (the "License"); |
5 you may not use this file except in compliance with the License. | 5 you may not use this file except in compliance with the License. |
6 You may obtain a copy of the License at | 6 You may obtain a copy of the License at |
7 | 7 |
8 http://www.apache.org/licenses/LICENSE-2.0 | 8 http://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 |
10 Unless required by applicable law or agreed to in writing, software | 10 Unless required by applicable law or agreed to in writing, software |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 new Animation(container.getElementsByClassName("b")[0], | 107 new Animation(container.getElementsByClassName("b")[0], |
108 [{left: "100px"}, {left: "180px"}], | 108 [{left: "100px"}, {left: "180px"}], |
109 {duration: 1 * 1000, iterations: 3.0, fill: 'forwards'}), | 109 {duration: 1 * 1000, iterations: 3.0, fill: 'forwards'}), |
110 // Test zero iterations. | 110 // Test zero iterations. |
111 new Animation(container.getElementsByClassName("c")[0], | 111 new Animation(container.getElementsByClassName("c")[0], |
112 [{left: "180px"}, {left: "300px"}], | 112 [{left: "180px"}, {left: "300px"}], |
113 {duration: 1 * 1000, iterations: 0.0, fill: 'forwards'}), | 113 {duration: 1 * 1000, iterations: 0.0, fill: 'forwards'}), |
114 ], {iterations: 2, direction: dir, duration: 4 * 1000, fill: 'forwards
'})); | 114 ], {iterations: 2, direction: dir, duration: 4 * 1000, fill: 'forwards
'})); |
115 } | 115 } |
116 </script> | 116 </script> |
OLD | NEW |