OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <!-- saved from url=(0048)http://fiddle.jshell.net/bt8dhkrn/28/show/light/ --> | |
3 <!-- here we have a fixed div that doesn't jitter --> | |
4 | |
5 <style> | |
6 #fixed { | |
7 width: 100px; | |
8 height: 100px; | |
9 background: papayawhip; | |
10 border: 1px solid black; | |
11 will-change: transform; | |
12 position : fixed; | |
13 } | |
14 | |
15 body { | |
16 height: 2500px; | |
17 } | |
18 </style> | |
19 | |
20 <script> | |
21 window.onload=function(){ | |
22 } | |
23 </script> | |
24 | |
25 <div id="fixed"></div> | |
26 </html> | |
OLD | NEW |