| 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 19 matching lines...) Expand all Loading... |
| 30 "use strict"; | 30 "use strict"; |
| 31 | 31 |
| 32 var anim = new Animation(a, [{ left: '100px'}, {left: '200px'}], | 32 var anim = new Animation(a, [{ left: '100px'}, {left: '200px'}], |
| 33 {delay: 0.2 * 1000, duration: 0.3 * 1000, endDelay: 0.4 * 1000, iterations: 3,
fill: 'both'}); | 33 {delay: 0.2 * 1000, duration: 0.3 * 1000, endDelay: 0.4 * 1000, iterations: 3,
fill: 'both'}); |
| 34 | 34 |
| 35 var par = new AnimationGroup([anim], {fill: 'none', iterations: 2}) | 35 var par = new AnimationGroup([anim], {fill: 'none', iterations: 2}) |
| 36 | 36 |
| 37 document.timeline.play(par); | 37 document.timeline.play(par); |
| 38 | 38 |
| 39 </script> | 39 </script> |
| OLD | NEW |