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)
})
javascript go to top of page
window.scroll({
top: 0,
left: 0,
behavior: 'smooth'
});
scroll to element jquery
$('html, body').animate({
scrollTop: $("#grepperRocks").offset().top
});
jquery scroll to top of div
$('#DIV_ID').scrollTop(0);
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;
});
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