jquery drag and drop animation

Posted by Cameron on Stack Overflow See other posts from Stack Overflow or by Cameron
Published on 2010-05-24T20:33:39Z Indexed on 2010/05/24 20:51 UTC
Read the original article Hit count: 194

Filed under:
|
|

I have some UI functionality for drag and drop, but when an element is dropped, the animation makes it flit about all over the place for a split second before it appears in the newly dropped location.

Can anyone advise how to tackle this, so that the draggable element moves more cleanly into place on success?

...
success : function() {
      $(ui.draggable)
        .parent().droppable("option", "disabled", false)
        .end()
        .appendTo(droppable)
        .droppable("option", "disabled", true);
    },
...

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery