Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Make everything rotate
SUBMITTED BY:
Guest
DATE:
Dec. 6, 2013, 11:46 a.m.
FORMAT:
Text only
SIZE:
671 Bytes
Raw
Download
Tweet
HITS:
709
Go to comments
Report
This is a browser mod to make everything rotate in a cool way
just copy the code into the url part of a bookmark and click the book mark
also share with your friends :)
javascript: var r = 0; var x1 = 0.1; var y1 = 0.05; var x2 = 0.25; var y2 = 0.24; var x3 = 1.6; var y3 = 0.24; var x4 = 300; var y4 = 200; var x5 = 300; var y5 = 200; var theElem = document.getElementsByTagName("div"); function aaa(){ for(i=0; i<theElem.length; i++){ elemStyle = theElem[i].style; elemStyle.position = "absolute"; elemStyle.left = Math.sin(r*x1+i*x2+x3)*x4+x5+"px"; elemStyle.top = Math.cos(r*y1+i*y2+y3 )*y4+y5+"px"; } r++; } setInterval(aaa,50); void(0)
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus