it will slide down and then disappear in
paste this function somewhere
jQuery.fn.doubleHide = function(){ return $(this).hide().css('opacity', '0'); } jQuery.fn.slideFade = function(slide, fade){ return $(this).slideDown(slide, function () { $(this).fadeTo(fade, 100); }); }
then u can call this function like fadeIn ()
$(this).stop(true).doubleHide().slideFade(400, 2000);
source share