how to scroll over an element in javascript code example
Example 1: javascript scroll to element
document.getElementById("divId").scrollIntoView();
Example 2: js scrolling in div
var divElement = document.getElementById("div");
divElement.scroll({
top: divElement.scrollHeight,//scroll to the bottom of the element
behavior: 'smooth' //auto, smooth, initial, inherit
});