// scrollup own $(window).scroll(function () { if ($(this).scrollTop() > 200) { $("#scroll-top").fadeIn(100) } else { $("#scroll-top").fadeOut()} }) $("#scroll-top").click(function () { $("html,body").animate({ scrollTop: 0 }, 3000) })