var logo = document.getElementById("logo"); TweenMax.to(logo, 1, {left:"500px", repeat:4, repeatDelay:0.3, yoyo:true});
<img id="logo" src="http://images.all-free-download.com/images/graphicthumb/tulip_flower_illustration_6814499.jpg">
#logo { position: relative; background-color: #e3ead9; width: 70px; height: 70px; }