| <meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
| <title>simple-animation</title> |
| <style type="text/css" media="screen"> |
| -webkit-transition: left 5s, top 5s; |
| -webkit-animation-name: simple; |
| -webkit-animation-duration: 2s; |
| -webkit-animation-timing-function: linear; |
| -webkit-animation-fill-mode: backwards; |
| @-webkit-keyframes simple { |
| <script type="text/javascript" charset="utf-8"> |
| function doTransition() { |
| var div = document.querySelector("div"); |
| div.style.left = "200px"; |
| var div = document.querySelector("div"); |
| div.className = "animate"; |
| <p>Testing setting an animation while a transition is running, in the |
| case where the animation synthesizes the initial keyframe</p> |
| Start the transition, then start the animation.</p> |
| <a href="https://bugs.webkit.org/show_bug.cgi?id=41188">https://bugs.webkit.org/show_bug.cgi?id=41188</a> |
| <button onclick="doTransition();">Transition</button> |
| <button onclick="doAnimation();">Set Animation</button> |