go to top of the page
$(“html, body”).animate({ scrollTop: 0 }, 1000);
go to bottom of the page
$(“html, body”).animate({ scrollTop: $(document).height() }, 1000);
go to top of the page
$(“html, body”).animate({ scrollTop: 0 }, 1000);
go to bottom of the page
$(“html, body”).animate({ scrollTop: $(document).height() }, 1000);