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">
<div id="bar">
</div>
CSS
#logo {
position: relative;
width: 70px;
height: 70px;
}
#bar {
background-color: #2F4F4F;
positin:relative;
width:70px;
height:10px;
JavaScript
var logo = document.getElementById("logo"),
bar =document.getElementById("bar");
TweenLite.to(logo, 3, {left: "350px",delay: 1});
TweenLite.to(bar, 2, {width:"420px"});