Last Updated: February 25, 2016
·
2.114K
· rwz

Element's scrollIntoView method

Turns out DOM-Element has a method to scroll itself into view. And looks like it's been there since forever. Even IE6 supports it.

https://developer.mozilla.org/en-US/docs/DOM/element.scrollIntoView

And look ma, no jQuery!