# locomotivemtl/locomotive-scroll

🛤 Detection of elements in viewport & smooth scrolling with parallax.

Repository: https://github.com/locomotivemtl/locomotive-scroll
Canonical: https://ross.abutalabs.com/products/locomotive-scroll
Homepage: https://scroll.locomotive.ca
Language: JavaScript
License: MIT
License Family: permissive
Topics: smooth-scrolling, parallax, in-view, javascript
Last push: 2026-06-30T19:36:53+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 34, longevity 100
- inputs: {"age_days": 3612, "days_push": 64, "days_rel": 230, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8848, forks 1113 (observed 2026-08-28T04:10:26.022711+00:00)

## What it is
Locomotive Scroll is a lightweight (9.4kB gzipped) JavaScript library for smooth scrolling, viewport detection, and parallax effects, built on top of Lenis. Version 5 is a complete TypeScript-first rewrite featuring dual Intersection Observers, scroll progress tracking, and accessibility support.

## Use cases
- add smooth scrolling to a website
- create parallax scroll effects
- trigger animations when elements enter the viewport
- track scroll progress for progress bars
- build scroll-driven animations
- detect when elements are in view and fire callbacks

## When to choose
- you need smooth scrolling with parallax and in-view detection in one lightweight package
- you want an accessible, production-ready scroll library with native scrollbar and keyboard support
- you prefer a fully typed TypeScript library built on Lenis

## When to avoid
- you only need basic smooth scrolling without detection or parallax (use Lenis directly)
- you need scroll-triggered animations with a full timeline/animation engine (consider GSAP ScrollTrigger)
- your project must support very old browsers without Intersection Observer

## Facets
- artifact type: library
- maturity: stable
- function: animation, ui-components
- domain: web-development, frontend
- platform: browser, cross-platform
- tags: smooth-scrolling, parallax, in-view-detection, intersection-observer, scroll-animations, lenis, typescript, nodejs

## Member repositories
- locomotivemtl/locomotive-scroll (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:26.022711+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:24:47.719250+00:00, confidence not recorded.
  - readme: https://github.com/locomotivemtl/locomotive-scroll (fetched 2026-08-28T04:10:26.022711+00:00, sha 2e898794eda1)
  - homepage: https://scroll.locomotive.ca (fetched 2026-08-29T08:25:25.599092+00:00, sha 920ad61ace5d)
  - site_page: https://scroll.locomotive.ca/docs (fetched 2026-08-29T08:25:25.601825+00:00, sha 081113bf0101)
  - registry_npm: https://registry.npmjs.org/locomotive-scroll (fetched 2026-08-29T08:25:25.603691+00:00, sha f61ec11f870b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
