🛤 Detection of elements in viewport & smooth scrolling with parallax.
v1.0.45
1.0.29
rootElement
1.0.27
and support its new options
eventsTarget
syncTouch
syncTouchLerp
touchInertiaMultiplier
autoResize
start()
/stop()
lenis methods not sync with core instsanceGetting closer and closer to a official release!
Subscribe scrollEventProgress option to attributes that need RAF
4.1.4
horizontal.html
).scrollTo
parameters with the options
object (offset, duration, easing...).data-scroll-id=""
attribute to select elements.on scroll
event.Export updates It's now possible to only import the Native Class, if you don't want the smooth scrolling.
As usual, you can do like this:
import LocomotiveScroll from 'locomotive-scroll';
Or just import the Native Class:
import { Native } from 'locomotive-scroll';
And create your instance like before
// const scroll = new LocomotiveScroll(options);
const scroll = new Native(options);