JSFiddle - React, Tailwind, and code Playground
by reine_rizmut
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/plugins/CSSPlugin.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/easing/EasePack.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/TweenLite.min.js"></script>
<img id="logo" src="http://images.all-free-download.com/images/graphicthumb/tulip_flower_illustration_6814499.jpg">
<br>
<input type="button" id="tweenbutton" value="create new tween">
CSS
#logo {
position: relative;
background-color: #e3ead9;
width: 70px;
height: 70px;
}
JavaScript
var logo = document.getElementById("logo"),
tweenbutton = document.getElementById("tweenbutton");
tweenbutton.onclick = function () {
TweenLite.to(logo, 0.4, {
left: "+=100px",
});}