如何爲jquery拖動添加平滑或動畫&拖放?jquery拖放 - 緩解
這裏是我的代碼:
<!-- Drag and Drop -->
$("#sortable-left, #sortable-right").sortable({
connectWith: ".connectedSortable",
receive: function(e,ui){
}
});
$("#sortable-right").on("click", "li a", function(){
$(this).closest('li').remove();
});
$("#sortable-right").on("click", ".drop-close", function(){
$("ul#sortable-left").append('<li class="ui-state-default ui-sortable-handle"> <strong>'+$(this).parents("li").find("strong").text()+'</strong><div class="ui-plus-desc"> <a class="drop-close" data-toggle="tooltip" data-original-title="Remove"> <i class="fa fa-times"></i></a><span>at 11:47, 21 June 2014</span><span>by Mark Antany</span></div></li>');
});
<!-- Drag and Drop -->
您不能/不應平滑拖動操作。你的意思是放映操作應該是動畫? –
是的。像那隻... 這是可能的上面提到我的代碼? –
這可能是你要找的東西http://stackoverflow.com/questions/6398854/jquery-draggable-with-ease – AndrewPolland