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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 var a3 = new Animation( | 77 var a3 = new Animation( |
78 document.querySelector("#c"), effect, {duration: 1.0 * 1000, fill: "forwards
"}); | 78 document.querySelector("#c"), effect, {duration: 1.0 * 1000, fill: "forwards
"}); |
79 var a4 = new Animation( | 79 var a4 = new Animation( |
80 document.querySelector("#d"), effect, {duration: 2.0 * 1000, fill: "forwards
"}); | 80 document.querySelector("#d"), effect, {duration: 2.0 * 1000, fill: "forwards
"}); |
81 var pgroup1 = new AnimationGroup([a1, a2], {name: "p1", fill: "forwards"}); | 81 var pgroup1 = new AnimationGroup([a1, a2], {name: "p1", fill: "forwards"}); |
82 var pgroup2 = new AnimationGroup([a4, a3], {name: "p2", fill: "forwards"}); | 82 var pgroup2 = new AnimationGroup([a4, a3], {name: "p2", fill: "forwards"}); |
83 document.timeline.play( | 83 document.timeline.play( |
84 new AnimationSequence([pgroup1, pgroup2], {name: "s", fill: "forwards"})); | 84 new AnimationSequence([pgroup1, pgroup2], {name: "s", fill: "forwards"})); |
85 | 85 |
86 </script> | 86 </script> |
OLD | NEW |