0
當我向下滾動我的功能時,他們也有工作。但是我希望他們在回滾到頂端時做相反的事情。但是如何? 這就是我得到的:滾動回頂部做對面
var $document = $(document)
$document.scroll(function() {
if ($document.scrollTop() >= 50) {
AnimateFunction();
}
});
function AnimateFunction() {
setTimeout(function() {
$("#LOGO").animate({height: '180px'}, 1);
$("ul").animate({top: '-14px'}, 1);
$("li").animate({fontSize: '8pt'}, 1);
$("#HB").animate({marginTop: '-10px'}, 1);
$("#HB").animate({height: '29px'}, 1).animate({width: '26px'}, 1);
}
)};
我希望有人能幫助我!