I haven't found in the documentation or on the internet how to call the on() method in the react locomotive scroll. If you know how to do it, please advise.
const ref = useRef(null);
const options = {
smooth: true,
lerp: 0.08,
table: {
smooth: true
},
smartPhone: {
smooth: true
},
}
<LocomotiveScrollProvider options={options} containerRef={ref}>
<div className={demoFour.demo_four} data-scroll-container ref={ref}>
<div className={demoFour.demo_four__container}>
<section className={demoFour.home} data-scroll-section=""></section>
</div>
</div>
</LocomotiveScrollProvider>