adding a delay before item reverts - draggable jquery -
i trying add delay between when user drags , drops div, , when div reverts back.
so upon mouse up, when revert action begins have short delay.
here jquery:
$( "#draggable" ).draggable({ revert: true , revertduration: 1000 });
and here fiddle http://jsfiddle.net/yxbp9/54/
you can custom revert function return true revert item in revert option
$( "#draggable" ).draggable({ revert: function(){$(this).delay(1000);return true;} , revertduration: 1000 });
hope help,
here fiddle, http://jsfiddle.net/yxbp9/73/
Comments
Post a Comment