랭킹으로 돌아가기
🛤 Detection of elements in viewport & smooth scrolling with parallax.
smooth-scrollingparallaxin-viewjavascript
주요 지표
스타 성장
스타
8.8k
포크
1.1k
주간 성장
—
이슈
5
5k
2016년 10월2018년 5월2020년 1월2021년 8월2023년 4월2024년 12월2026년 7월
아티팩트npm
npm install locomotive-scrollREADME
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
npm install locomotive-scroll
import LocomotiveScroll from 'locomotive-scroll';
const scroll = new LocomotiveScroll();
@import 'locomotive-scroll/dist/locomotive-scroll.css';
<div data-scroll data-scroll-speed="0.5">I move at half speed</div>
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
관련 저장소