# iamdustan/smoothscroll

Scroll Behavior polyfill

Repository: https://github.com/iamdustan/smoothscroll
Canonical: https://ross.abutalabs.com/products/smoothscroll
Homepage: http://iamdustan.com/smoothscroll/
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2022-12-06T20:22:56+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4773, "days_push": 1366, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3826, forks 328 (observed 2026-08-28T04:08:22.495013+00:00)

## What it is
A JavaScript polyfill implementing the CSSOM Scroll Behavior specification, adding smooth scrolling support for window.scroll, window.scrollTo, window.scrollBy, and Element.scrollIntoView in browsers that lack native support. It detects native support and only patches when necessary.

## Use cases
- add smooth scrolling to anchor links in older browsers
- polyfill scrollIntoView smooth behavior in Safari or IE
- make window.scrollTo animate smoothly cross-browser
- support scroll-behavior CSS spec in unsupported browsers
- smooth scroll to page sections on click

## When to choose
- you must support older browsers like IE9+, Safari 6+, or Edge 12+ that lack native scroll-behavior
- you want a spec-compliant polyfill rather than a custom animation library
- you need a tiny drop-in fix that only activates when native support is missing

## When to avoid
- your target browsers all natively support CSS scroll-behavior (modern Chrome, Firefox, Opera)
- you need advanced scroll animation features beyond the spec, like easing or callbacks
- you need a full-featured smooth scroll library with custom controls

## Facets
- artifact type: library
- maturity: maintenance
- function: animation, ui-components
- domain: frontend, web-development, browser-extensions
- platform: browser
- tags: polyfill, smooth-scroll, scroll-behavior, browser-compatibility, es5, javascript

## Member repositories
- iamdustan/smoothscroll (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:22.495013+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:26:21.395314+00:00, confidence not recorded.
  - readme: https://github.com/iamdustan/smoothscroll (fetched 2026-08-28T04:08:22.495013+00:00, sha 70c35a9dc557)
  - homepage: http://iamdustan.com/smoothscroll/ (fetched 2026-08-29T09:21:14.439605+00:00, sha f8acb249e755)
- Data as of 2026-08-30T08:39:29.467469+00:00.
