| animation: move1 linear 2s; |
| animation: move1 linear 2s paused; |
| from { transform: translateX(0px); } |
| to { transform: translateX(300px); } |
| <script src="resources/animation-test-helpers.js" type="text/javascript"></script> |
| <script type="text/javascript"> |
| // [animation-name, time, element-id, property, expected-value, tolerance] |
| ["move1", 0.5, "box", "transform", [1,0,0,1,75,0], 20], |
| ["move1", 1.0, "box", "transform", [1,0,0,1,150,0], 20], |
| ["move1", 2.5, "box", "transform", [1,0,0,1,150,0], 20], |
| function pauseAnimation() |
| document.getElementById("box").classList.add('paused'); |
| setTimeout(pauseAnimation, 1000); |
| runAnimationTest(expectedValues, setTimers, null, true); |