Skip to content

Instantly share code, notes, and snippets.

@voronoipotato
Created April 17, 2019 20:19
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 voronoipotato/67553002e4cbe163d8597c9a0a581795 to your computer and use it in GitHub Desktop.
Save voronoipotato/67553002e4cbe163d8597c9a0a581795 to your computer and use it in GitHub Desktop.
//Source http://matthewrayfield.com/articles/animating-urls-with-javascript-and-emojis/#%F0%9F%95%9B
var f = ['πŸŒ‘', 'πŸŒ’', 'πŸŒ“', 'πŸŒ”', 'πŸŒ•', 'πŸŒ–', 'πŸŒ—', '🌘'];
function loop() {
location.hash = f[Math.floor((Date.now()/100)%f.length)];
setTimeout(loop, 50);
}
loop();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment