网页下拉顶部导航缩小并固定
网页下拉顶部导航缩小并固定是一款基于jquery实现的网页下拉的同时顶部导航逐渐缩小并固定在顶部。jquery网页下拉顶部固定
网站导航
<script>
$(document).on("scroll",function(){
if($(document).scrollTop()>200){
$(".nav").stop().animate({
height:'50px'
});
}else{
$(".nav").stop().animate({
height:'100px'
});
}
});
</script>