Package
scroll-into-view-if-needed
Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 6.8m
- +104% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 1
- Direct, from package.json
- Last release
- 3 years ago
- v3.1.0
- GitHub stars
- 1.5k
- 77 forks
- Open issues / PRs
- 20 / 10
- Contributors
- -
- Commits, last 52 weeks
- 6
Downloads
Last week 2026-09-15 to 2026-09-21
6,765,786 downloads last week, 32,274,162 in the last month. The 12-month change of +104% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 077 in total
- Latest version
- 3.1.0, 13 Sept 20233 years ago
- First published
- 18 Apr 2016
- Last push to GitHub
- 25 Sept 2026same day as the snapshot
- Repository archived
- No
- Open issues
- 20
- Open pull requests
- 10
- Commits, last 52 weeks
- 6
- Dependents on npm
- 1,116
Major versions
- v3 first release 3.0.0, 1 Dec 2022
- v2 first release 2.0.0, 22 Apr 2018
- v1 first release 1.0.0, 18 Apr 2016
Recent releases
| Version | Published |
|---|---|
| 3.1.0 | 13 Sept 2023 |
| 3.0.10 | 10 Apr 2023 |
| 3.0.9 | 9 Apr 2023 |
| 3.0.8 | 8 Apr 2023 |
| 3.0.7 | 6 Apr 2023 |
| 3.0.6 | 14 Feb 2023 |
| 3.0.5 | 14 Feb 2023 |
| 3.0.4 | 8 Jan 2023 |
| 3.0.3 | 1 Dec 2022 |
| 3.0.2 | 1 Dec 2022 |
| 3.0.1 | 1 Dec 2022 |
| 3.0.0 | 1 Dec 2022 |
| 2.2.31 | 29 Nov 2022 |
| 2.2.30 | 29 Nov 2022 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 44 kB
- Dependencies (1)
compute-scroll-into-view
npm install scroll-into-view-if-neededCDN
jsDelivr: 78.7k requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/scroll-into-view-if-needed@3.1.0/ - unpkg
https://unpkg.com/scroll-into-view-if-needed@3.1.0/ - esm.sh
https://esm.sh/scroll-into-view-if-needed@3.1.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| @juggle/resize-observer | 4.6m | - | 4 years ago | ESM + CommonJS | scroll-into-view-if-needed vs @juggle/resize-observer |
| @thednp/dommatrix | 182k | - | 22 days ago | ESM + CommonJS | - |
| ember-cli-typescript-blueprint-polyfill | 96.3k | - | 4 years ago | CommonJS | - |
Indexability: Indexed.