I have the following:
$(function() {
$('.ajaxloader').click(function(event) {
var target = $(this).attr('href');
window.location.hash = target;
$('#conteudoInscricao').fadeOut('slow', function() {
$.ajax({
url: target,
success: function(data) {
$('#conteudoInscricao').html(data);
$('#conteudoInscricao').fadeIn('slow');
}
});
});
return false;
});
});
This works almost ok. The thing is... the effect is not smooth. I mean, first it fades out the content A, then it stays blank, and then it fades IN content B.
What I would like is to ease the effect so that, while he is fading out really near the end, he starts to fade in so that the effect could be smooth.
How can that be achieve regarding the code below?
Thanks a lot in advance, MEM