Skip to content

Instantly share code, notes, and snippets.

@AlexsanderAMcom
AlexsanderAMcom / README.md
Last active September 3, 2019 19:52 — forked from jocki84/README.md
scrollIntoViewIfNeeded cross-browser

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