JSFiddle - React, Tailwind, and code Playground

by Atit Sasono

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/CSSPlugin.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenLite.min.js"></script>
<div id="demo">
    <div id="logo"><img src="http://images.clipartpanda.com/superman-clipart-superman-clipart-01.jpg" width="200px" height="200px"></div>
</div>
<input type="button" id="tweenBtn" value="create new tween">

CSS

body{
    background-color:#000;
}
#demo {
    width: 1256px;
    height: 200px;
    background-color: #333;
    padding: 8px;
    overflow:hidden;
}
#logo {
    position: relative;
	border-radius:200px;
}

JavaScript

window.onload = function() {
    var logo = document.getElementById("logo"),
        tweenBtn = document.getElementById("tweenBtn");
     
    tweenBtn.onclick = function() {
    TweenLite.to(logo, 0.5, {left:"+=80px"});
    };
}