JSFiddle - React, Tailwind, and code Playground

by zono

HTML

<img src="//sites.google.com/site/demobuttons/fun.png" id="funImage">

JavaScript

setTimeout(function left() {
   var funImage = document.getElementById("funImage");
   funImage.style.transform = 'rotate(45deg)'; 
   funImage.style.WebkitTransform = 'rotate(45deg)'; 
   funImage.style.MozTransform = 'rotate(45deg)'; 
   funImage.style.OTransform = 'rotate(45deg)'; 		
   funImage = null;
   setTimeout(function () {
       var funImage = document.getElementById("funImage");
       funImage.style.transform = 'rotate(145deg)'; 
       funImage.style.WebkitTransform = 'rotate(145deg)'; 
       funImage.style.MozTransform = 'rotate(145deg)'; 
       funImage.style.OTransform = 'rotate(145deg)'; 
       funImage = null;    
       setTimeout(function () {
       var funImage = document.getElementById("funImage");
       funImage.style.transform = 'none'; 
       funImage.style.WebkitTransform = 'none'; 
       funImage.style.MozTransform = 'none'; 
       funImage.style.OTransform = 'none'; 
       funImage = null;   
              setTimeout(left, 1000);
       }, 1000);
   }, 1000);
},1000);