Skip to content

Instantly share code, notes, and snippets.

@andreloureiro
Created February 7, 2014 12:31
Show Gist options
  • Save andreloureiro/8861838 to your computer and use it in GitHub Desktop.
Save andreloureiro/8861838 to your computer and use it in GitHub Desktop.
change_body_bg_color
window.setInterval(function(){
document.body.style.webkitTransition = '500ms all linear';
document.body.style.backgroundColor = '#'+Math.round(Math.random() * (999999 - 100000) + 100000)
},500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment