leafiy
5/18/2018 - 6:46 PM

scroll to top #js #animate

none

$('html, body').animate({
    scrollTop: ($(this).offset().top)
},500);c || document.body.scrollTop;
if (c > 0) {
window.requestAnimationFrame(scrollToTop);
window.scrollTo(0, c - c / 8);
}
};
// scrollToTop()