[jQuery] Re: Callback functions

2009-03-27 Thread Ricardo
When using a second object for the options, the callback must be defined in it, like this: .animate({ top : '1038px', left : '247px' }, { duration: 1400, easing:'easeInOutQuad', complete: function() { $('#anim_talkBubble') .fadeIn(1000)

[jQuery] Re: Callback functions

2009-03-27 Thread weidc
for me it works like this: $('#anim_flipper').animate({top: '1130px'}, { duration: 1100}) .animate({left: '335px'}, {duration: 1400}, {easing:'easeInOutQuad'}) .animate({top: '1126px', left: '339px'}, { duration: 600}, {easing:'easeOutQuad'}) .animate({top: '1142px', left: '330px'},