JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.js"></script>
<script src="https://github.com/downloads/heygrady/transform/jquery.transform-0.9.3.min.js"></script>
<div class="wrapper">
        <div class="rotate">rotate me</div>    
</div>

CSS

.wrapper  { position: relative; top: 100px; 
            left: 300px; height: 386px; 
            width: 300px; border:1px solid red }
.rotate   { width:150px; height:25px; border:1px solid blue }

JavaScript

$('.rotate').transform({ rotate: '90deg', origin: [0, 0] });