[jQuery] Re: HELP!!! wait for fade out before replacement div fades in

2009-01-28 Thread Stephan Veigl
simply do the fade in in the finished callback of the fade out $("a.linkclass").click(function() { var next = $($(this).attr("href")); $('.msg_body').fadeOut("fast", function(){ next.fadeIn("fast"); }) }); by(e) Stephan

[jQuery] Re: HELP!!! wait for fade out before replacement div fades in

2009-01-28 Thread Mohd.Tareq
use animat() function $('.msg_body').animate({"left": "50", "opacity": 1}, 1500).fadeOut(1000); $($(this).attr("href")).animate({"left": "50", "opacity": 1}, 1500).fadeIn(1000); above animate function will fade out first & after 1000 ms will proceed for fadein right now its getting fadeOut & imm