var previousScroll = 0;
$(window).scroll(function() {
var currentScroll = $(this).scrollTop();
if (currentScroll > previousScroll){
$('#sc1_dwn').css('height',('+=15'));
} else {
$('#sc1_dwn').css('height',('-=15'));
}
previousScroll = currentScroll;
});
$(window).scroll(function() {
var currentScroll = $(this).scrollTop();
if (currentScroll > previousScroll){
$('#sc1_dwn').css('height',('+=15'));
} else {
$('#sc1_dwn').css('height',('-=15'));
}
previousScroll = currentScroll;
});
No comments:
Post a Comment