randomizer bg!
HTML
<html lang="en">
<body>
<span class="color-bg"></span>
</body>
CSS
.color-bg {
position: fixed;
left: 20px;
bottom: 20px;
/* opcional */
font: 5em 'Roboto';
color: #fff;
font-weight: 100;
}
JAVASCRIPT
setInterval(function() {
var bg = '#' + (Math.random() * 0xFFFFFF << 0).toString(16);
$('body').css('background', bg);
$('.color-bg').text(bg);
}, 600);
1 Response