First question, so please :)
What I'm trying to do is call the function when the user releases the dragged file and until the return animation is complete.
As far as I can see, the stop event is fired only when completion is complete. I tried passing the function to the return function for drag and drop, but it doesn't seem to work. Here is some of my code to demonstrate;
$("a").draggable({ helper:function(){ return $("<div/>",{id:"mydrag",text:"link"}).appendTo("body"); }, revert:function(evt,ui){
If I uncomment the first line of the returned function - fadeout - then the element disappears, but does not return. The console only registers the fin when the final animation is complete.
Can anyone help me? Needless to say, I had a lot of answers for Googled, but no luck.
Buster
Busterluke
source share