Created
July 2, 2017 06:14
-
-
Save mike-engel/2eb2a78488e7470bdb0377f4387f8240 to your computer and use it in GitHub Desktop.
A stupid javascript function to bring chaos to any webpage
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
Array.prototype.slice.call(document.querySelectorAll('*')).forEach(el => { | |
el.style.position = 'fixed' | |
el.style.top = Math.random() * window.innerHeight + 'px' | |
el.style.left = Math.random() * window.innerWidth + 'px' | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment