I want to make a Back to top button like the page below https://www.k-kosho.co.jp/
As the scroll button will be hidden, only show again when I stop the scroll.
This is my start js, hope everyone helps.
$(window).scroll(function() {
if ($(this).scrollTop() != 0) {
$('.ev-scrolltop').fadeIn();
} else {
$('.ev-scrolltop').fadeOut();
}
});
Thank you everyone!