well ... let slideDown show the element and slideUp let it be hidden. try
$(html).slideDown(500)
@Philip Hardyhis says: fixes my problem. However, is there a way for it to slide from below without using .animate ()
, , :
div- html ( $(html) ) "myDiv" html myDiv
div (, , )
$(document).css('overflow','hidden');
$("#myDiv").css({'top':$(document).height(), 'opacity':'0'});
$("#myDiv").animate({
'opacity':'1',
'top':'0'
},2000, function(){$(document).css('overflow','auto');});
,