Last active
February 23, 2023 03:47
-
-
Save rensjaspers/6830369fe3b730afb4ac88117cd75f6d to your computer and use it in GitHub Desktop.
Slowly rotate page prank
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
(function(){ | |
var deg = 1; | |
var body = document.getElementsByTagName("body")[0]; | |
body.style.overflow = "hidden"; | |
body.style.transition = "1000ms linear all"; | |
setInterval(function() { | |
body.style.transform = `rotate(${deg/5}deg)`; | |
deg ++; | |
},1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment