Skip to content

scroll-into-viewscroll-into-view-if-needed

Repository stars
1,451Star
All-time
#32,701 all time
Fork
78 Fork
Repository created
since 2016
Website
View source

Element.scrollIntoView ponyfills for things like "if-needed" and "smooth"

Commercial use OKMIT; keep the license notice
Actively maintainedLast push 11 days ago

About

scroll-into-view-if-needed fills in if-needed and smooth scrolling behaviors for Element.scrollIntoView.

It suits frontend cases that need controlled element scroll positioning. It supports block and inline alignment plus the scrollMode option.

Summarized by AI from the READMEREADME

As of 2026-11-12, scroll-into-view/scroll-into-view-if-needed has 1,451 GitHub stars and 78 forks. Written mainly in JavaScript; licensed under MIT; last pushed on 2026-11-11.Record updated:

Raw observations · 7
Historical observations
Measured atRepository starsSource
2026-11-12 07:18 UTC1,451Source
2026-11-11 06:51 UTC1,451Source
2026-11-10 05:45 UTC1,450Source
2026-11-09 05:01 UTC1,450Source
2026-11-08 05:02 UTC1,450Source
2026-11-07 22:15 UTC1,450Source
2026-11-06 12:11 UTC1,450Source

First collected 2026-11-06Measured at 2026-11-12 07:18 UTCSourceLicense source

Compiled from public project information; not independently tested. · Repository Stars, not unique users · License tiers are derived from metadata. Check obligations for your use; unknown does not mean prohibited.