Thursday, March 26, 2015

Everything is spinning

More stupid browser tricks, this time the document spins in realtime.

Type this into a Javascript console in chrome or Web Console in firefox:


var myrot=0;function quickfunc(){document.body.style.transform="rotateZ("+(myrot++)+"deg)";if(myrot<=360) window.setTimeout(quickfunc,100);document.title=myrot;document.body.style.transformOrigin="right top"}quickfunc();


It will spin the document once around.

No comments:

Post a Comment