Skip to content

Instantly share code, notes, and snippets.

@adambarreiro
Last active August 29, 2015 14:14
Show Gist options
  • Save adambarreiro/dabeba84b8dcce032125 to your computer and use it in GitHub Desktop.
Save adambarreiro/dabeba84b8dcce032125 to your computer and use it in GitHub Desktop.
A script for making your screen crazy
/**
* 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