それは非常に単純に思えますが、これを機能させることができませんでした。2 つの異なる droppables 内に 2 つの draggables があります。ドラッグ可能なものをあるドロップ可能なものから別のドロップ可能なものに配置すると、既存のドラッグ可能なものがアニメーション化されて、別のドロップ可能な領域に移動する必要があります。
$('.droppable').droppable({
hoverClass: 'hoverClass',
drop: function(event, ui) {
var $from = $(ui.draggable),
$fromParent = $from.parent(),
$to = $(this).children(),
$toParent = $to.parent();
// This is where I replace draggables' positions without animation
$toParent.html($from.css({left: '', top: '', 'z-index': ''}));
$fromParent.html($to);
makeDraggable();
}
});