Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / animation / compositor-end-delay.html
blob24e91afb7814e70c049434e42cb01f9c3dc74598
1 <style>
2 div {
3 position: relative;
4 height: 100px;
5 width: 100px;
6 background: blue;
8 </style>
10 Animation with endDelay on and off the compositor. The two boxes should have identical motions.
11 <br>
13 <div id="target1"></div>
14 <div id="target2"></div>
16 <script>
17 var player1 = target1.animate([
18 {left: '0px'},
19 {left: '400px'},
20 ], {
21 duration: 1000,
22 endDelay: -500,
23 });
25 var player2 = target2.animate([
26 {transform: 'translate(0px)'},
27 {transform: 'translate(400px)'},
28 ], {
29 duration: 1000,
30 endDelay: -500,
31 });
32 </script>