blob: a0ba4306062cb30b3f7a3560ccde560b558e368a [file] [log] [blame]
.box {
position: relative;
left: 0;
height: 100px;
width: 100px;
margin: 10px;
background-color: blue;
-webkit-transition-property: left;
-webkit-transition-duration: 0.1s;
<script src="transition-end-event-helpers.js"></script>
<script type="text/javascript">
var expectedEndEvents = [
// [property-name, element-id, elapsed-time, listen]
["left", "box1", 0.1, false]
function setupTest()
window.onwebkittransitionend = recordTransitionEndEvent;
var box = document.getElementById('box1'); = '200px';
runTransitionTest(expectedEndEvents, setupTest);
<p>Initiating a 100ms transition on the left property of box1 and catching it on the window.</p>
<div id="container">
<div id="box1" class="box"></div>
<div id="result"></div>