I have code that is basically identical to the jQuery UI Sortable example here:
http://jqueryui.com/demos/sortable/#default
This allows users to reorder LI elements in UL. However, I came across a situation where I want to revive the changing position of LI ... basically, as if the user himself dragged them. This turned out to be much more complicated than I expected, since I am not animating the changes that can be expressed in CSS, so jQuery animate () will not help.
I could solve the problem by doing some math and absolutely positioning the list items, but that seems completely ugly. Is there an elegant way to animate my list items?
javascript jquery jquery-ui
Derek thurn
source share