web-feature: scrollIntoView()

baseline logo Widely available

The scrollIntoView() method scrolls an element’s ancestor containers such that the element is visible to the user.