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.
Element.scrollIntoViewIfNeeded()
If the element is fully within the visible area of the viewport, it does nothing. Otherwise, the element is scrolled into view. A proprietary variant of the standard `Element.scrollIntoView()` method.
element api: scrollintoview
element api: scrollintoviewifneeded
element api: scrollintoview: `options` parameter
5 results found.