1 <!doctype html
><html><meta charset=utf-
8>
2 <meta name =
"viewport" content =
"width = device-width, user-scalable = no">
12 left:
150px; top:
50px;
14 -webkit-transform-origin:
25px
100px;
33 return Math
.floor(Math
.abs(Math
.cos(count
)) * x
);
36 var d
= document
.createElement('div');
37 d
.style
.top
= rnd(350) + 'px';
38 d
.style
.left
= rnd(275) + 'px';
39 d
.style
.background
= 'rgb(' + rnd(255) + ',' + rnd(255) + ',' + rnd(255) + ')';
40 document
.querySelector('.b').appendChild(d
);
42 for (var i
= 0; i
< 1000; i
++) {
48 d
= document
.querySelector('.o');
50 d
.style
.webkitTransform
= 'rotate3d(0,0,1,' + a
+ 'deg)';
55 window
.requestAnimationFrame(step
);
58 history
.pushState(n
, n
, '/pushstate/' + n
);