JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <body>
        <button>Click Me!</button>
        <div></div>
    </body>
</html>

CSS

div {
    height: 450px;
    width: 400px;
    background-image: url('http://img268.imageshack.us/img268/904/collagezz.jpg');
}

JavaScript

$(function(){
    $('button').click(function(){
        $('div').animate({
            backgroundPositionX: '-=400'
        });
    });
});