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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 document.timeline.play(new Animation(document.querySelector("#a"), | 69 document.timeline.play(new Animation(document.querySelector("#a"), |
70 {left: "200px"}, {delay: 1 * 1000, duration: 2 * 1000, fill: 'forwards'})); | 70 {left: "200px"}, {delay: 1 * 1000, duration: 2 * 1000, fill: 'forwards'})); |
71 var elems = document.querySelectorAll(".test"); | 71 var elems = document.querySelectorAll(".test"); |
72 for (var i = 0; i < elems.length; i++) { | 72 for (var i = 0; i < elems.length; i++) { |
73 var element = elems[i]; | 73 var element = elems[i]; |
74 document.timeline.play(new Animation(element, {left: "200px"}, | 74 document.timeline.play(new Animation(element, {left: "200px"}, |
75 {delay: 1 * 1000, duration: 2 * 1000, easing: element.textContent, fill: '
forwards'})); | 75 {delay: 1 * 1000, duration: 2 * 1000, easing: element.textContent, fill: '
forwards'})); |
76 } | 76 } |
77 </script> | 77 </script> |
OLD | NEW |