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
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
2 matches
Mail list logo