JSFiddle - React, Tailwind, and code Playground

HTML

<div class = 'logo'>
    <div class='white'/>    
</div>

CSS

.logo{
    width:240px;
    height:120px;
    background: url(http://habrahabr.ru/images/bg-multilogo.png);
}
.white{
    width:120px;
    height:120px;
    background:white;
    position:relative;
    left:120px;
}

JavaScript

var wh = $(".white"),
    left = true;
function move(){
    if(left){
        wh.css('left','120px');
    } else {
        wh.css('left','0px');
    }
    left = !left;   
    setTimeout(move,0);
}
move();