# cferdinandi/smooth-scroll

A lightweight script to animate scrolling to anchor links.

Repository: https://github.com/cferdinandi/smooth-scroll
Canonical: https://ross.abutalabs.com/products/smooth-scroll
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, vanilla-js, anchor-links, animate-scrolling, no-dependencies, javascript-plugin
Archived: true
Last push: 2020-04-27T19:47:01+00:00

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

## Adoption (not part of the score)
Stars 5434, forks 836 (observed 2026-08-28T04:09:18.107749+00:00)

## What it is
A lightweight, dependency-free vanilla JavaScript plugin that animates scrolling to anchor links on a page. It is now deprecated in favor of the native CSS `scroll-behavior: smooth` property.

## Use cases
- animate scrolling to anchor links
- smooth scroll navigation on a static website
- add smooth scrolling without jQuery or dependencies
- scroll to section with easing options
- implement one-page navigation with animated scrolling

## When to choose
- you must support very old browsers that lack CSS scroll-behavior support
- you need easing or speed controls the native CSS approach doesn't offer
- you're maintaining a legacy site already using the plugin

## When to avoid
- starting a new project - use the native CSS `scroll-behavior: smooth` instead
- you need cross-page anchor scrolling, which the plugin doesn't support
- you want actively maintained software with bug fixes

## Facets
- artifact type: library
- maturity: abandoned
- function: animation, ui-components
- domain: web-development, frontend
- platform: browser
- tags: vanilla-js, anchor-links, smooth-scrolling, no-dependencies, deprecated, javascript

## Member repositories
- cferdinandi/smooth-scroll (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:18.107749+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-29T17:56:52.952008+00:00, confidence not recorded.
  - readme: https://github.com/cferdinandi/smooth-scroll (fetched 2026-08-28T04:09:18.107749+00:00, sha c168541b9686)
  - registry_npm: https://registry.npmjs.org/smooth-scroll (fetched 2026-08-29T08:52:19.451313+00:00, sha dcd933ce9e7d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
