Right now, when I replace the content inside the div “foo”, the new content appears right away. There is a way for new content to fade out.
<div class="foo">Initial content to be replaced</div>
$('div.foo').html('New content');
I know about the fadeIn () function, the reason I am asking this question is because I can’t figure out how it could be technically possible, since the foo div was never hiding for a start, since it could “disappear” " But still, if someone can think about how super it will be.
source
share