elementscrollTooptions
ElementscrollTooptions refers to the options object used with the DOM Element.scrollTo method to control scrolling inside a scrollable element. In standard web terminology, the corresponding interface is ScrollToOptions, and elementscrollTooptions describes the same concept as applied to an individual element rather than the window.
The ScrollToOptions object provides three properties. left and top specify the target scrollLeft and scrollTop positions
Element.scrollTo supports two call patterns. You can pass numeric coordinates as element.scrollTo(left, top), or pass a
Compatibility notes: Element.scrollTo with options is supported in modern browsers. Older browsers may not implement the