Last active
August 29, 2015 14:14
-
-
Save adambarreiro/dabeba84b8dcce032125 to your computer and use it in GitHub Desktop.
A script for making your screen crazy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* They see me rolling, they hatin' | |
*/ | |
(function(target){ | |
var time=1; | |
var all; | |
setInterval(function() { | |
time*=2; | |
all = document.getElementsByTagName(target); | |
for (var i=0, max=all.length; i < max; i++) { | |
all[i].style.transform = 'rotate(' +time+ 'deg)'; | |
} | |
if (time > 360) time=1; | |
}, 10); | |
})('*'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment