Skip to content

Instantly share code, notes, and snippets.

@caspian311
Last active November 30, 2015 22:47
Show Gist options
  • Save caspian311/7d9eefc2372d91f6a58e to your computer and use it in GitHub Desktop.
Save caspian311/7d9eefc2372d91f6a58e to your computer and use it in GitHub Desktop.
Doing barrel rolls on any page
(function() {
var rotationInDegrees = 0;
function rotateThePodPleaseHal() {
rotationInDegrees += 5;
document.getElementsByTagName('body')[0].style.transform = 'rotate3d(1, 0, 1, ' + rotationInDegrees + 'deg)';
if (rotationInDegrees < 360) {
setTimeout(rotateThePodPleaseHal, 10);
}
}
setTimeout(rotateThePodPleaseHal, 10);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment