Fade out a div with content A, and Fade In the same div with content B
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