| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2014 Google Inc. All Rights Reserved. | 2 Copyright 2014 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 21 matching lines...) Expand all Loading... |
| 32 svg.appendChild(path); | 32 svg.appendChild(path); |
| 33 return path; | 33 return path; |
| 34 } | 34 } |
| 35 | 35 |
| 36 addPath(startPath, 'red'); | 36 addPath(startPath, 'red'); |
| 37 addPath(endPath, 'red'); | 37 addPath(endPath, 'red'); |
| 38 var target = addPath(startPath, 'green'); | 38 var target = addPath(startPath, 'green'); |
| 39 target.classList.add('target'); | 39 target.classList.add('target'); |
| 40 target.animate({d: endPath}, 1000); | 40 target.animate({d: endPath}, 1000); |
| 41 </script> | 41 </script> |
| OLD | NEW |