JSFiddle - React, Tailwind, and code Playground
by TheoI
HTML
<script type="text/javascript" src="http://jqueryrotate.googlecode.com/svn/trunk/jQueryRotate.js"></script>
<span id="image">
CSS
#image{
margin:100px 100px;
background-image: url("https://www.google.com/images/srpr/logo3w.png");
}
JavaScript
$("#image").rotate({
bind:
{
mouseover : function() {
$(this).rotate({animateTo:180})
},
mouseout : function() {
$(this).rotate({animateTo:0})
}
}
});