Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

locomotive-scroll

> 编程语言
Open source

Detection of elements in viewport & smooth scrolling with parallax.

8.8K stars0 likes2 views
WebsiteGitHub

About

Detection of elements in viewport & smooth scrolling with parallax.

Locomotive Scroll

A lightweight & modern scroll library for detection, animation, and smooth scrolling. Built on top of Lenis.

Documentation

Full documentation available at scroll.locomotive.ca/docs.

Quick Start

bash
npm install locomotive-scroll
javascript
import LocomotiveScroll from 'locomotive-scroll';

const scroll = new LocomotiveScroll();
css
@import 'locomotive-scroll/dist/locomotive-scroll.css';
xml

Features

  • Lightweight — Only 9.4kB gzipped
  • TypeScript First — Fully typed
  • Built on Lenis — Latest stable release with improved performance
  • Dual Intersection Observers — Optimized detection for triggers vs. animations
  • Smart Touch Detection — Parallax auto-disabled on mobile
  • Accessible — Native scrollbar, keyboard navigation, proper ARIA support

Demo

Check out the examples and playground

Support

GitHub Issues

Issues· 26 open

View all issuesOpen on GitHub
  • #630

    Next.js example unavailable

    Updated Sep 29, 2026
  • #629

    [data-scroll-offset="calc(100% - 100px), 0"]

    Updated Jul 16, 2026
  • #600

    Bump lenis to 1.3.18

    dependenciesUpdated Mar 5, 2026
  • #596

    Expose a useLocomotiveScroll hook

    enhancementUpdated Feb 9, 2026
  • #539

    data-scroll-delay for v5

    enhancementUpdated Jan 19, 2026
  • #594

    Global enable on mobile without data-scroll-enable-touch-speed tag.

    enhancementUpdated Jan 19, 2026

> Tags

JavaScriptin-viewjavascriptparallaxsmooth-scrolling

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言