
Locomotive Scroll
JavaScript scroll library that detects elements entering the viewport and adds smooth scrolling and parallax effects.
scroll.locomotive.carepositorydocs
Locomotive Scroll detects when elements enter the viewport and adds smooth scrolling and parallax effects to a page. It is built on top of Lenis, a separate smooth scroll engine, and the bundle includes Lenis. Parallax is set per element with the data-scroll-speed attribute.
Worth knowing
The documentation says the library may not be fully compatible with server-side rendering, because it relies on the window object and the Intersection Observer API.
Identity
Rendering and deploy
- Install with
- npm, CDN9
Releases
Adoption
Sources
- 2026-11-16: links
scroll.locomotive.ca/ - 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/locomotivemtl/locomotive-scroll - 2026-11-16: links
scroll.locomotive.ca/docs - 2026-11-16: First release
api.github.com/repos/locomotivemtl/locomotive-scroll/tags - 2026-11-16: Maintainer, License model
raw.githubusercontent.com/locomotivemtl/locomotive-scroll/main/LICENSE - 2026-11-16: Headquarters
locomotive.ca/en - 2026-11-16: Categories
raw.githubusercontent.com/locomotivemtl/locomotive-scroll/main/README.md - 2026-11-16: Built on
github.com/locomotivemtl/locomotive-scroll/blob/main/README.md - 2026-11-16: Install with
scroll.locomotive.ca/docs/getting-started/installation - 2026-11-16: Current major version, Last release
api.github.com/repos/locomotivemtl/locomotive-scroll/releases - 2026-11-16: Contributors
api.github.com/repos/locomotivemtl/locomotive-scroll/contributors?per_page=1 - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/locomotive-scroll - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/locomotive-scroll