jQuery Sortable with animation

前端 未结 5 1496
一向
一向 2020-12-07 18:23

I\'m using jQuery and Sortable to arrange my list of items (and this http://dragsort.codeplex.com).

All works perfect.

I\'m using a function on dragEnd

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 18:35

    Why did not you used Sortable on jqueryui? http://jsfiddle.net/KgNCD/

    JS:

    $( "#sortable" ).sortable({       
        start: function(e, ui){
            $(ui.placeholder).hide(300);
        },
        change: function (e,ui){
            $(ui.placeholder).hide().show(300);
        }
    });                           
    $("#sortable").disableSelection();
    

    HTML:

    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12

提交回复
热议问题