Skip to content

Instantly share code, notes, and snippets.

@theoparis
Created March 6, 2021 22:58
Show Gist options
  • Save theoparis/17d07823c602700f05ebcfc57f958c3f to your computer and use it in GitHub Desktop.
Save theoparis/17d07823c602700f05ebcfc57f958c3f to your computer and use it in GitHub Desktop.
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