Created
November 23, 2017 02:08
-
-
Save antenando/fa79e6eef7af8e0723736564af2a0ca3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rand = () => Math.floor(Math.random() * 256) | |
const r = () => (`rgb(${rand()}, ${rand()}, ${rand()})`) | |
const divs = document.querySelectorAll('div') | |
const viewDestroy = () => divs.forEach(d => d.style.background = r()) | |
setInterval(viewDestroy, 100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment