setInterval(function(){ const all = document.querySelectorAll('*') const hexlut = ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'] const units = ['px','pt','%','rem','em','in','cm','vh','vw'] let i= 0 all.forEach(function(node) { node.style.backgroundColor = '#' + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] node.style.color = '#' + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] node.style.borderColor = '#' + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] + hexlut[Math.floor(Math.random()*16)] node.style.borderWidth = Math.floor(Math.random()*10) + units[Math.floor(Math.random()*9)] node.style.borderStyle = Math.floor(Math.random()*2%2) ? 'solid' : 'dotted' node.style.transform = 'rotate(' + (Math.floor(Math.random()*(5 - -5) + 1) + -5) + 'deg)' node.style.fontSize = (Math.floor(Math.random()*(100 - 1) + 1) + 1) + 'px' node.transparency = Math.floor(Math.random()*100) }) var newelem = document.createElement('div') newelem.style.width = Math.floor(Math.random()*100) + '%' newelem.style.height = Math.floor(Math.random()*100) + '%' newelem.style.position = 'absolute' newelem.style.top = Math.floor(Math.random()*100) + '%' newelem.style.left = Math.floor(Math.random()*100) + '%' document.body.appendChild(newelem) },10)