🛤 Detection of elements in viewport & smooth scrolling with parallax.
See the codeA lightweight & modern scroll library for detection, animation, and smooth scrolling. Built on top of Lenis.
Full documentation available at scroll.locomotive.ca/docs.
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>
Check out the examples and playground
Overall
Maintained
Code review
Latest release
Releases this year
(top 24 of 25)
6,580 followers · starred Sep 2024
303 followers · starred Jan 2021
141 followers · starred Aug 2023
138 followers · starred Jan 2022
🛤 Detection of elements in viewport & smooth scrolling with parallax.
See the codeA lightweight & modern scroll library for detection, animation, and smooth scrolling. Built on top of Lenis.
Full documentation available at scroll.locomotive.ca/docs.
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>
Check out the examples and playground
Overall
Maintained
Code review
Latest release
Releases this year
(top 24 of 25)
6,580 followers · starred Sep 2024
303 followers · starred Jan 2021
141 followers · starred Aug 2023
138 followers · starred Jan 2022