Skip to content

Instantly share code, notes, and snippets.

@konamax123 konamax123/trippy.js
Created Mar 10, 2018

Embed
What would you like to do?
((d => {
var s = d.createElement('style')
d.head.appendChild(s)
s.sheet.insertRule('@keyframes s {from {transform:rotate(0deg);}to {transform:rotate(359deg);}}')
d.querySelectorAll('html *').forEach((e, i) => setTimeout(() => (e.style.animation = `s ${Math.pow(i, -1) * 1000 * 60}s infinite linear`), Math.random() * 10))
})(this.document))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.