Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var deg = 0;
- var rotate = 0.001;
- function rotateBody() {
- if (deg >= 0.1) rotate = -0.001;
- if (deg <= -0.1) rotate = 0.001;
- deg += rotate;
- $('body').css('transform', 'rotate('+deg+'deg)');
- window.setTimeout(function() { rotateBody(); }, 10);
- };
- rotateBody();
- $('body').css('overflowX', 'hidden');
- $('body *:not("iframe")').each(function() {
- var degrees = Math.floor(Math.random() * .8) - .03;
- $(this).css('transform', 'rotate('+degrees+'deg)');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement