JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://jqueryrotate.googlecode.com/files/jQueryRotate.2.1.js"></script>
<div id="frame" style="height:400px;width:400px; background-color:#CCCCCC;" >
<img id="Img1" src="http://jonraasch.com/blog/images/jquery-logo.gif" />
</div>
JavaScript
var test = 5;
$(function() {
$('#Img1').draggable({ containment: 'parent' });
$('#frame img').live('mousedown', function(event) {
test = test + 15;
$(this).rotate({ angle: test });
});
});