9 -webkit-transform: translate3d(
0px,
0px,
0px);
10 -webkit-transition-duration:
1s;
11 -webkit-transition-timing-function: linear;
12 -webkit-transition-property: -webkit-transform;
17 The blue box should only animate to the right.
19 This test is successful if the box animates to the right without
20 jumping to the left. Jumping to the right is ok.
28 window
.onload = function() {
31 function transitionAgain() {
32 box
.style
.webkitTransform
= "translate3d(200px, 0px, 0px)";
35 var animate = function() {
36 var curTime
= window
.performance
.now();
37 if (curTime
> startTime
+ 500) {
39 while (window
.performance
.now() < curTime
+ 300) {}
41 window
.requestAnimationFrame(animate
);
45 window
.requestAnimationFrame(animate
);
47 requestAnimationFrame(animate
);
49 startTime
= window
.performance
.now();
50 box
.style
.webkitTransform
= "translate3d(100px, 0px, 0px)";