Answers for "smooth scroll to specific div on scroll bar javascript"

0

smooth scrolling to div java script

var element = document.querySelector("#post-container");

// smooth scroll to element and align it at the bottom
element.scrollIntoView({ behavior: 'smooth'});
Posted by: Guest on September-03-2021

Browse Popular Code Answers by Language