Skip to content

Instantly share code, notes, and snippets.

@jocki84
jocki84 / README.md
Last active June 23, 2022 06:13 — forked from hsablonniere/README.md
scrollIntoViewIfNeeded 4 everyone!!!

Polyfill for scrollIntoViewIfNeeded()

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

Features

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