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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 groups[i].append(new Animation(container.getElementsByClassName("e")[0], | 119 groups[i].append(new Animation(container.getElementsByClassName("e")[0], |
120 effect300To100, {duration: 0.5 * 1000, playbackRate: -0.5, fill: 'forwards
'})); | 120 effect300To100, {duration: 0.5 * 1000, playbackRate: -0.5, fill: 'forwards
'})); |
121 groups[i].append(new Animation(container.getElementsByClassName("f")[0], | 121 groups[i].append(new Animation(container.getElementsByClassName("f")[0], |
122 effect300To100, {duration: 2.0 * 1000, playbackRate: -2.0, fill: 'forwards
'})); | 122 effect300To100, {duration: 2.0 * 1000, playbackRate: -2.0, fill: 'forwards
'})); |
123 // Test zero. | 123 // Test zero. |
124 groups[i].append(new Animation(container.getElementsByClassName("g")[0], | 124 groups[i].append(new Animation(container.getElementsByClassName("g")[0], |
125 effect300To100, {duration: 1.0 * 1000, playbackRate: 0.0, fill: 'forwards'
})); | 125 effect300To100, {duration: 1.0 * 1000, playbackRate: 0.0, fill: 'forwards'
})); |
126 document.timeline.play(groups[i]); | 126 document.timeline.play(groups[i]); |
127 } | 127 } |
128 </script> | 128 </script> |
OLD | NEW |