javascript - Smooth scroll to div id jQuery - Stack Overflow

PHOTO EMBED

Thu Oct 14 2021 12:56:11 GMT+0000 (UTC)

Saved by @fiki98

$('html, body').animate({
    scrollTop: $("#myDiv").offset().top
}, 2000);
content_copyCOPY

https://stackoverflow.com/questions/19012495/smooth-scroll-to-div-id-jquery