JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://www.snorkl.tv/dev/libs/greensock/TweenMax.min.js"></script>
<script src="http://www.snorkl.tv/dev/libs/greensock/plugins/ColorPropsPlugin.min.js"></script>

<img src="http://www.greensock.com/wp-content/themes/greensock/images/logo.png" width="192" height="65" id="photo"/>

CSS

#photo{
  position:absolute;
  
}



body{
background-color:#000;
}

JavaScript

//this works because an <img> element actually has a width attribute
var photo = document.getElementById("photo");

TweenLite.fromTo(photo, 1, {css:{left: 50, top:100, rotation:0}});