Skip to content

Instantly share code, notes, and snippets.

@shhrr
Last active August 29, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save shhrr/9359507 to your computer and use it in GitHub Desktop.
Save shhrr/9359507 to your computer and use it in GitHub Desktop.
<body>
<script>
var colors = ["#F7977A","#F9AD81","#FDC68A","#FFF79A","#C4DF9B","#A2D39C","#82CA9D","#7BCDC8","#6ECFF6","#7EA7D8","#8493CA","#8882BE","#A187BE","#BC8DBF","#F49AC2","#F6989D"];
//Currently using Ivory (#FFFFF0) as the background, and it works well with the pastels.
var i = 0;
setInterval(function(){
i++
if (i>=colors.length){
i=0;
}
document.body.style.backgroundColor = colors[i];
},3500);
</script> </body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment