Here is the script which I am using for locomotive-scroll:
let scrollContainer = document.querySelector("[data-scroll-container]");
var scroll;
scroll = new LocomotiveScroll({ el: scrollContainer, smooth: true, });
c-scrollbar-thumb height is 8048px. My main viewport height of data-scroll-container is 15804px.
Hello 👋
Here is the script which I am using for locomotive-scroll: let scrollContainer = document.querySelector("[data-scroll-container]"); var scroll; scroll = new LocomotiveScroll({ el: scrollContainer, smooth: true, });
c-scrollbar-thumb height is 8048px. My main viewport height of data-scroll-container is 15804px.
HTML structure is like:
Thank you 👊