DEV Community

Cover image for Locomotive Scroll v5: Lightweight Parallax & Smooth Scroll Library
jQueryScript
jQueryScript

Posted on

Locomotive Scroll v5: Lightweight Parallax & Smooth Scroll Library

Locomotive Scroll v5: a lightweight JavaScript library (9.4kB gzipped) that handles smooth scrolling and parallax effects.

Built on Lenis with TypeScript support.

Key features:

• Dual Intersection Observer strategy separates simple triggers from continuous animations

• Automatic parallax disabling on touch devices

• Custom scroll container support

• Progress tracking via CSS variables or JavaScript events

• Zero layout shifts with non-greedy transforms

Perfect for developers building scroll-driven interfaces who need complete API documentation in one place.

👉 Blog Post

👉 GitHub Repo

👉 Live Demo

Top comments (0)