Этот скрипт для прокрутки вверх, как я могу изменить прокрутку вниз.Как создать анимационную кнопку прокрутки вниз с помощью jQuery
Это мой сценарий:
$(document).ready(function(){
//Check to see if the window is top if not then display button
$(window).scroll(function(){
if ($(this).scrollTop() > 100) {
$('.scrollToTop').fadeIn();
} else {
$('.scrollToTop').fadeOut();
}
});
//Click event to scroll to top
$('.scrollToTop').click(function(){
$('html, body').animate({scrollTop : 0},800);
return false;
});
});
Возможный дубликат HTTP: // stackoverflow.com/questions/1890995/jquery-scroll-to-bottom-of-page-iframe и http://stackoverflow.com/questions/4249353/jquery-scroll-to-bottom-of-the-page – lmgonzalves