| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 div.style.height = "50px"; | 43 div.style.height = "50px"; |
| 44 div.style.background = "red"; | 44 div.style.background = "red"; |
| 45 div.style.zIndex = startZ + | 45 div.style.zIndex = startZ + |
| 46 Math.round((i / totalWidth) * (endZ - startZ)); | 46 Math.round((i / totalWidth) * (endZ - startZ)); |
| 47 div.style.position = "relative"; | 47 div.style.position = "relative"; |
| 48 document.body.insertBefore(div, marker); | 48 document.body.insertBefore(div, marker); |
| 49 } | 49 } |
| 50 document.timeline.play(new Animation(document.querySelector("#test"), | 50 document.timeline.play(new Animation(document.querySelector("#test"), |
| 51 [{zIndex: String(startZ)}, {zIndex: String(endZ)}], {duration: 3 * 1000, fil
l: 'forwards'})); | 51 [{zIndex: String(startZ)}, {zIndex: String(endZ)}], {duration: 3 * 1000, fil
l: 'forwards'})); |
| 52 </script> | 52 </script> |
| OLD | NEW |