Basic usage of hqyDraggable & hqyResizable.
$('#demo').hqyDraggable().hqyResizeable();
<div class="demo-box"> <div id="demo" class="bg-red" style="position:absolute;padding:100px;text-align:center;">drag resize</div> </div>