JSFiddle - React, Tailwind, and code Playground

by jeremyblalock

HTML

<div class='static'>
    
</div>

CSS

html, body, .static {
    height: 100%;
}
html, body {
    padding: 0;
    margin: 0;
}
.static {
    background: url('http://www.coins-bloc.com/wordpress/wp-content/uploads/2011/07/white-noise2.jpg');
    width: 100%;
}

JavaScript

var $static = $('.static');

function move() {
    $static.css({
        backgroundPosition: Math.round(Math.random() * 1000) + "px " + Math.round(Math.random() * 1000) + "px"
    });
}

var interval = setInterval(move, 40);