JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test"> test </div>

CSS

#test{
	width: 300px;
	height: 200px;
	background-color: #CCCCCC;
	background-image: url("http://www.shred-x.com.au/wp-content/uploads/2013/10/transparent-diagonal-gradient.png");
	top: 400px;
	right: 400px;
}

JavaScript

$(function(){
    setInterval( function(){
        $("#test").css("background-position","-1000px").animate({"background-position":"+=1000px"},3000)}, 5000);
     })