Skip to content

Instantly share code, notes, and snippets.


  • AMcom
  • São Paulo
Block or report user

Report or block AlexsanderAMcom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AlexsanderAMcom /
Last active Sep 3, 2019 — forked from jocki84/
scrollIntoViewIfNeeded cross-browser

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.