sanfte scrollen zum oberen jQuery
window.scrollTo({top: 0, behavior: 'smooth'});
Lokesh003
window.scrollTo({top: 0, behavior: 'smooth'});
$("my-element").click(function () {
$("html, body").animate({
scrollTop: 0
}, 1000)
})
$('#DIV_ID').scrollTop(0);
window.scrollTo({top: 0, behavior: 'smooth'});
reference : https://stackoverflow.com/questions/15935318/smooth-scroll-to-top
$("#button").click(function() {
$([document.documentElement, document.body]).animate({
scrollTop: $("#elementtoScrollToID").offset().top
}, 2000);
});
$("#home_div").animate({scrollTop: $(window).scrollTop(0)}, 500);