[jQuery] Re: using animate() with duration/queue object and callback doesn't work
anyone? On Jan 3, 11:17 am, chrismarx [EMAIL PROTECTED] wrote: hi, this works fine $elem.animate( {opacity:0}, 600, callback) .animate( {height:hide}, 700); but this doesn't $elem.animate( {opacity:0}, {queue:false, duration:600}, callback) .animate( {height:hide}, 700); nor this $elem.animate( {opacity:0}, {queue:false, duration:600, callback:callback}) .animate( {height:hide}, 700); what am i missing?
[jQuery] Re: using animate() with duration/queue object and callback doesn't work
try $elem.animate( {opacity:0}, 600, function(){ $(this).animate( {height:0}, 700); })
[jQuery] Re: using animate() with duration/queue object and callback doesn't work
On Jan 3, 4:17 pm, chrismarx [EMAIL PROTECTED] wrote: hi, this works fine $elem.animate( {opacity:0}, 600, callback) .animate( {height:hide}, 700); but this doesn't $elem.animate( {opacity:0}, {queue:false, duration:600}, callback) .animate( {height:hide}, 700); Try... $elem.animate( {opacity:0} , {queue:false, duration:600, complete:callback} ) .animate( {height:hide}, 700); nor this $elem.animate( {opacity:0}, {queue:false, duration:600, callback:callback}) .animate( {height:hide}, 700); what am i missing?