Skip to content

Instantly share code, notes, and snippets.

@emalgholzad
Forked from wesbos/dance.js
Created September 4, 2019 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emalgholzad/0ef1e9624648e9f0df8618c5bbd9a733 to your computer and use it in GitHub Desktop.
Save emalgholzad/0ef1e9624648e9f0df8618c5bbd9a733 to your computer and use it in GitHub Desktop.
// 1. Visit a news website like cnn.com
// 2. paste this into your console
setInterval(() =>
document.querySelectorAll('p,img,a,button,h1,h2,h3,span')
.forEach(x=>x.style=`transform:rotate(${Math.random()*777}deg) scale(${Math.random()* 3}); transition:all .5s`)
, 500);
// 3. feel a lil bit better 😘
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment