| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <link href='http://fonts.googleapis.com/css?family=IM+Fell+Great+Primer+SC' rel=
'stylesheet' type='text/css'> |
| 3 <style> |
| 4 |
| 5 .card { |
| 6 position: absolute; |
| 7 left: 10px; |
| 8 top: 10px; |
| 9 width: 200px; |
| 10 height: 200px; |
| 11 background: #736F68; |
| 12 color: #D9CCC5; |
| 13 padding: 20px; |
| 14 font-family: 'IM Fell Great Primer SC', serif; |
| 15 font-size: 3em; |
| 16 border-radius: 5px; |
| 17 -webkit-transform: translateZ(0); |
| 18 } |
| 19 |
| 20 body { |
| 21 background: #212126; |
| 22 } |
| 23 |
| 24 #raf { |
| 25 position: absolute; |
| 26 left: 700px; |
| 27 top: 10px; |
| 28 background: #826B54; |
| 29 } |
| 30 |
| 31 .scroller { |
| 32 top: 500px; |
| 33 width: 500px; |
| 34 height: 700px; |
| 35 border: 2px solid black; |
| 36 overflow-y: scroll; |
| 37 background: #736F68; |
| 38 } |
| 39 |
| 40 .bubbler { |
| 41 position: absolute; |
| 42 z-index: 0; |
| 43 width: 700px; |
| 44 height: 1000px; |
| 45 border: 2px solid black; |
| 46 overflow: scroll; |
| 47 background: #235274; |
| 48 } |
| 49 |
| 50 .spacer { |
| 51 width: 5000px; |
| 52 height: 1000px; |
| 53 position: absolute; |
| 54 top: 2000px; |
| 55 } |
| 56 |
| 57 .scrolled { |
| 58 width: 2000px; |
| 59 height: 9000px; |
| 60 color: #D9CCC5; |
| 61 padding: 20px; |
| 62 font-family: 'IM Fell Great Primer SC', serif; |
| 63 font-size: 3em; |
| 64 } |
| 65 |
| 66 </style> |
| 67 <script> |
| 68 var worker = null; |
| 69 |
| 70 //onload = function() { |
| 71 // // Set up worker rAF animation. |
| 72 // worker = new UIWorker('resources/bubble.js'); |
| 73 // var scroller = document.getElementById('scroller'); |
| 74 // var img = document.getElementById('img'); |
| 75 // worker.postMessage([ |
| 76 // scroller.bindAnimatedProperty('scrollTop'), |
| 77 // scroller.bindAnimatedProperty('pendingScrollDelta'), |
| 78 // img.bindAnimatedProperty('transform') |
| 79 // ]); |
| 80 //} |
| 81 |
| 82 </script> |
| 83 <div id="bubbler" class="bubbler"> |
| 84 <div id="scroller" class="scroller" z-index="0" style="position: absolute"> |
| 85 <div id="scrolled" class="scrolled"> |
| 86 <img id="img" src='http://wvs.topleftpixel.com/photos/scotia_plaza_tall_stit
ched.jpg' z-index="-1" style="position: absolute; transform: translateY(0)"/> |
| 87 <div style="position: absolute"> |
| 88 This<p />stuff<p />is<p />totally<p />scrolled! |
| 89 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 90 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 91 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 92 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 93 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 94 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 95 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 96 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 97 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 98 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 99 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 100 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 101 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 102 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 103 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 104 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 105 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 106 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 107 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 108 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 109 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 110 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 111 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 112 <p />This<p />stuff<p />is<p />totally<p />scrolled! |
| 113 <p />This<p />stuff<p />is<p />totally<p />scrolled!</div> |
| 114 </div> |
| 115 </div> |
| 116 <div id="spacer" class="spacer"></div> |
| 117 </div> |
| OLD | NEW |