3 <title>Compositing - Huge <div></title>
6 <div id="big" style="-webkit-transform: translateZ(0);">
7 <div style="left: 0px; top: 0px; width: 100px; height: 100px; position: absolute; background-color: green;"></div>
8 <div style="left: 3000000px; top: 1000000px; width: 100px; height: 100px; position: absolute; background-color: red;" id="bottomRight"></div>
16 raf = window.requestAnimationFrame ||
17 window.webkitRequestAnimationFrame ||
18 window.mozRequestAnimationFrame ||
19 window.oRequestAnimationFrame ||
20 window.msRequestAnimationFrame;
28 var bottomRight = document.getElementById('bottomRight');
33 return Math.floor(Math.random() * 256);
38 bottomRight.style.left = x + 'px';
39 bottomRight.style.top = y + 'px';
40 bottomRight.style.backgroundColor = "rgb(" + rand255() + ", " + rand255() + ", " + rand255() + ")";