scroll-into-view-if-needed
Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center
scroll-into-view-if-needed@3.1.0 was published on 2023-09-13. Its manifest declares 1 runtime dependency and 0 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
All scroll-into-view-if-needed versions · Permanent reference to 3.1.0
Package specifications
| Version | 3.1.0 |
|---|---|
| License declaration | MIT |
| Published | 2023-09-13T15:23:12.302Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 1 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 43.73 KiB |
| Published file count | 10 |
| Package type | module |
| ES module entry | ./dist/index.js |
| Default entry | ./dist/index.cjs |
| Side effects declaration | false |
| Direct advisories | 0 |
| Resolved graph dependencies | 1 |
| Repository stars | 1449 |
| Repository forks | 78 |
Install scroll-into-view-if-needed 3.1.0
npm install scroll-into-view-if-needed@3.1.0 pnpm add scroll-into-view-if-needed@3.1.0 yarn add scroll-into-view-if-needed@3.1.0
Runtime dependencies
- compute-scroll-into-view ^3.0.2
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- compute-scroll-into-view@3.1.1 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Evidence and freshness
- https://registry.npmjs.org/scroll-into-view-if-needed/3.1.0 — retrieved 2026-10-29T12:55:32.398Z
- https://api.deps.dev/v3/systems/npm/packages/scroll-into-view-if-needed/versions/3.1.0 — retrieved 2026-10-29T12:55:32.991Z
- https://api.deps.dev/v3/systems/npm/packages/scroll-into-view-if-needed/versions/3.1.0:dependencies — retrieved 2026-10-29T12:55:33.040Z
- https://api.deps.dev/v3/projects/github.com%2Fscroll-into-view%2Fscroll-into-view-if-needed — retrieved 2026-10-29T12:55:33.289Z