Created
March 6, 2021 22:58
-
-
Save theoparis/17d07823c602700f05ebcfc57f958c3f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
setInterval(function() { | |
Array.prototype.slice.call( | |
document.querySelectorAll( | |
'div,p,span,img,a,body')).map(function(tag){ | |
tag.style['transform'] = 'rotate(' + ( | |
Math.floor(Math.random() * 300) - 1) + 'deg)'; | |
tag.style['transform'] = 'skew(' + ( | |
Math.floor(Math.random() * 400) - 1) + 'deg)'; | |
tag.style['transform'] = 'scale(' + ( | |
Math.floor(Math.random() * 50) - 1) + 'deg)'; | |
tag.style['backgroundColor'] = '#' + (Math.floor(Math.random()*50) - 1) + '' + (Math.floor(Math.random()*50) - 1) + '' + (Math.floor(Math.random()*50) - 1); | |
}); | |
}, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment