| animation: move 0.25s linear; |
| animation-duration: 0.2s; |
| animation: slide 0.25s linear; |
| animation-duration: 0.2s; |
| from { transform: translateX(100px); } |
| to { transform: translateX(400px); } |
| testRunner.waitUntilDone(); |
| var box = document.getElementById('box1'); |
| box.addEventListener('animationend', function() { |
| window.setTimeout(function() { |
| document.body.classList.add('changed'); |
| window.setTimeout(function() { |
| box.classList.add('mover'); |
| document.getElementById('box2').classList.add('slider'); |
| window.addEventListener('load', doTest, false); |
| <div id="box1" class="box"></div> |
| <div id="box2" class="box"></div> |