Skip to content

Instantly share code, notes, and snippets.

jocki84 /
Last active Oct 29, 2020 — forked from hsablonniere/
scrollIntoViewIfNeeded 4 everyone!!!

Polyfill for scrollIntoViewIfNeeded()

This gist provides polyfill code for the [scrollIntoViewIfNeeded()][SIVIN] Element method found on WebKit browsers.


There is no particular requirement on the position in the hierarchy of the

You can’t perform that action at this time.