Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (53 sloc) 1.45 KB
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<style type="text/css" media="screen">
div {
position: relative;
left: 10px;
top: 10px;
width: 200px;
height: 200px;
background-color: #696;
-webkit-transition: left 5s, top 5s;
.animate {
-webkit-animation-name: simple;
-webkit-animation-duration: 2s;
-webkit-animation-timing-function: linear;
-webkit-animation-fill-mode: backwards;
@-webkit-keyframes simple {
50% {
left: 300px;
100% {
left: 80px;
<script type="text/javascript" charset="utf-8">
function doTransition() {
var div = document.querySelector("div"); = "200px";
function doAnimation() {
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=""></a>
<button onclick="doTransition();">Transition</button>
<button onclick="doAnimation();">Set Animation</button>
Jump to Line
Something went wrong with that request. Please try again.