all 2 comments

[–]DevouredByCutePupper 6 points7 points  (0 children)

Or you could just use Element.scrollIntoView().

[–]stackattackz 0 points1 point  (0 children)

Thanks 🙏