JQuery’s sortable has an option to revert the item that the user drags back in line with the rest, but the animation is a little slow.
Is there a simple way to specify 'fast' like some of the other methods?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It appears to be undocumented*, but setting therevertproperty to a number will treat that as the speed (or more specifically the duration in ms). So something like this gives a pretty quick revert animation:(Aside: It’s a pity they haven’t kept it consistent with draggables, which use
revertDurationto specify the speed of the revert.)*Edit: It looks like in the latest version it is now an officially documented feature.