Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: timelapse
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (48 sloc) 1.236 kB
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
#box1 {
position: relative;
height: 100px;
width: 100px;
left: 0;
background-color: blue;
margin: 0;
-webkit-animation-duration: 2s;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: 2;
-webkit-animation-direction: alternate;
-webkit-animation-name: move;
}
@-webkit-keyframes move {
from {
opacity: 1;
}
50% {
opacity: 1;
left: 100px;
}
to {
opacity: 1;
}
}
/* Test reversing animation with missing values */
</style>
<script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
const expectedValues = [
// [animation-name, time, element-id, property, expected-value, tolerance]
["move", 1, "box1", "left", 100, 15],
["move", 2, "box1", "left", 0, 15],
["move", 3, "box1", "left", 100, 15],
];
runAnimationTest(expectedValues);
</script>
</head>
<body>
<div id="box1"></div>
<div id="result">
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.