jquery - Why is my post-animate function not being called? -


i'm animating popups fade , slide in simultaneously. want reset position of hidden popup once it's hidden animation same every time.

when element rolled over, popup slides down , fades in. when it's rolled out of, popup slides down further , fades out, when it's hidden, resets initial position.

here's code:

$('*:has(.rollover)').hover(function(){   $('.rollover',this).fadein('fast').animate({     'top' : '60px',   }, {duration: 'fast', queue: false}, function() {}); },function(){   $('.rollover',this).fadeout('fast').animate({     'top' : '70px',   }, {duration: 'fast', queue: false}, function() {     console.log("hello");     $(this).css('top','50px');   }); }); 

the problem last line top reset not being triggered, , neither log statement. why this?

my error having:

, {duration: 'fast', queue: false}, function() {}); 

when should have had:

, {duration: 'fast', queue: false, complete : function() {}}); 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -