blob: 9324ce45a147a23e3707ef70e6ffeadb942ea94b [file] [log] [blame]
<html>
<head>
<title>Transition End Events</title>
<style type="text/css" media="screen">
.box {
position: relative;
left: 0;
height: 100px;
width: 100px;
margin: 10px;
background-color: blue;
-webkit-transition-property: -webkit-transform;
-webkit-transition-duration: 0.5s;
-webkit-transform: translate(100px);
}
</style>
<script src="transition-end-event-helpers.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
var expectedEndEvents = [
// [property-name, element-id, elapsed-time, listen]
["-webkit-transform", "box1", 0.5, true]
];
function setupTest()
{
var box = document.getElementById('box1');
box.style.webkitTransform = 'translate(200px)';
}
runTransitionTest(expectedEndEvents, 0.7, setupTest);
</script>
</head>
<body>
<p>Initiating a 500ms transition on the transform property of box1.</p>
<div id="container">
<div id="box1" class="box"></div>
</div>
<div id="result"></div>
</body>
</html>