jquery scroll to top
$("my-element").click(function () {
$("html, body").animate({
scrollTop: 0
}, 1000)
})
jquery scroll to top
$("my-element").click(function () {
$("html, body").animate({
scrollTop: 0
}, 1000)
})
scroll to top jquery
window.scrollTo({top: 0, behavior: 'smooth'});
reference : https://stackoverflow.com/questions/15935318/smooth-scroll-to-top
scrool to top jquerry
$("a[href='#top']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
jquery get document scrolltop
var top = ($(window).scrollTop() || $("body").scrollTop());
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us