JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js"></script>
<div class="window">
<div class="rect"></div>
</div>
<div id="log">
</div>
CSS
.window
{
width: 640px;
height: 480px;
background: gray;
position: absolute;
-webkit-transform: rotate(180deg);/**/
transform: rotate(180deg);/**/
-moz-transform: rotate(180deg);/**/
-ms-transform: rotate(180deg);/**/
}
.rect
{
left: 500px;
top: 400px;
width: 60px;
height: 40px;
background: red;
}
JavaScript
$(function() {
$('.rect').draggable();
});