10 Tests forcing changes to currentTime for a compositor animation.
12 The three squares should make identical movements from left to right, jumping every
200ms.
13 <div id=
"target1"></div>
14 <div id=
"target2"></div>
15 <div id=
"target3"></div>
17 var p1
= target1
.animate([
18 {transform
: 'translate(0%)'},
19 {transform
: 'translate(800px)'}
22 var p2
= target2
.animate([
23 {transform
: 'translate(0px)'},
24 {transform
: 'translate(800px)'}
27 var p3
= target3
.animate([
28 {transform
: 'translate(800px)'},
29 {transform
: 'translate(0px)'}
33 setInterval(function() {
34 p1
.currentTime
+= 100;
35 p2
.currentTime
+= 100;
36 p3
.currentTime
-= 100;
37 if (p1
.playState
== 'finished')
39 if (p2
.playState
== 'finished')
41 if (p3
.playState
== 'finished')