OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <style> | |
3 div { | |
4 position: absolute; | |
5 width: 100px; | |
6 height: 100px; | |
alancutter (OOO until 2018)
2015/09/01 01:48:46
Set both divs to have "border-left: solid; border-
Eric Willigers
2015/09/01 06:32:10
Acknowledged.
| |
7 } | |
8 | |
9 #target { | |
10 border: solid red; | |
11 } | |
12 | |
13 #expected { | |
14 border: solid green; | |
15 } | |
16 </style> | |
17 | |
18 <div id="target"></div> | |
19 <div id="expected"></div> | |
20 | |
21 <script> | |
22 expected.style.rotate = '225deg 1 0 0'; | |
alancutter (OOO until 2018)
2015/09/01 01:48:46
This should live in the #expected rule.
Eric Willigers
2015/09/01 06:24:42
Done.
| |
23 | |
24 var keyframes = [{ rotate: '0deg 0 1 0' }, { rotate: '450deg 1 0 0'}] | |
25 | |
26 var animation = target.animate(keyframes, { | |
27 duration: 1e10, | |
28 delay: -0.5e10 | |
29 }); | |
alancutter (OOO until 2018)
2015/09/01 01:48:46
Pause the animation and set currentTime instead. N
Eric Willigers
2015/09/01 06:24:42
Done.
| |
30 | |
31 </script> | |
OLD | NEW |