I am creating a small CMS and working with a sortable function for the first time. Pretty interesting and flexible. I have only one problem: everything works fine as I want, except for drag and drop animation.
If I'm not trying to use animation in any of the sorting events, thatβs fine, and the tiles fit perfectly into the spots, but I would love to bring it to life (just like renaming the iPhone icon). I know this has something to do with the ui.placeholder and ui.helper elements and one of the change / sort / etc events, but I can't get it to work.
Here, where I am, that works is that as soon as I move to a new place, the freed space comes to life (rather than being tied), but I can not simultaneously revive the new space to show, and my grid essentially folds to one tile.
UPDATE:
Here's a simple fiddle with my main list of html layouts and the behavior currently best I can do this:
-> jQuery sorting sort
The only thing I want is that the unselected blocks are expecting their new positions, and not tied. This is strange since the authors recognized the need for this option with the element you are dragging (return the speed option to init), but not everything else. I tried to use many show / hide animation combinations for ui.helper / ui.placeholder elements with varying degrees of success. My problem is not entirely clear when and where these objects are, so the animations were uncomfortable at best.
source share