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
精彩评论