开发者

Animated Sorting of Block Elements in Javascript

I have a page where I want to animate the sorting of a list of block elements.

<div class="container开发者_如何学C">
    <div class="content-block">
    ....
    </div>

    <div class="content-block">
    ....
    </div>
<div>

I want something similar to the sortable elements provided by jquery ui but it will animate based on an event not based on dragging. I can write it myself but I'm wondering if there are any good libraries out there to handle it.


I would write this myself. using the .animate() method. setting z-indexes and altering the positions of the elements. One thing that might be useful is animating one div and animating the other in the first animate's step event binder

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜