JSFiddle - React, Tailwind, and code Playground
by tikosar
HTML
<div class="draggable">
I am draggable
</div>
JavaScript
$('.draggable').draggable({
helper: function() {
return $('<div>').appendTo($('body'));
},
stop: function(e, ui) {
$(this).css({position: 'relative', left: ui.position.left, top: ui.position.top}).show();
},
start: function() {
$(this).hide();
}
});