Skip to content

globalScrollIntoViewForY()

Scrolls the page vertically to the viewport section containing the target element.

Example:

ts
globalScrollIntoViewForY(document.getElementById('footer')!);

Released under the MIT License.