Created
May 19, 2017 19:37
-
-
Save arnorhs/9340774df5c21c75002e0cb5402eb99b to your computer and use it in GitHub Desktop.
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
var els = document.querySelectorAll('h1, h2, h3, h4, h5, h6, a, p, div'); | |
function transform() { | |
Array.prototype.forEach.call(els, function(p) { | |
p.style.transform = 'translateY(' + (Math.random() - 0.5) + 'px)'; | |
}); | |
requestAnimationFrame(function() { | |
transform(); | |
}); | |
} | |
transform(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment