scrollIntoView

scrollIntoView

The Element.scrollIntoView() method scrolls the current element into the visible area of the browser window. Parameters can be provided to set the position inside the visible area as well as whether scrolling should be instant or smooth.

Spec https://drafts.csswg.org/cssom-view/#dom-element-scrollintoview
Status W3C Working Draft
IE Edge Firefox Chrome Safari Opera