gscroll
gscroll copied to clipboard
Little redefined GScroll for future enhancement
added vite as frontend tool
$ npm install // install package
$ npm run dev
options in more readable way
const scroll = new GScroll({
el: "#GScroll",
speed: 0.5
});
added on Constructor it will invoked automatically when GScsroll object is created
this.init();
this.wheel();
in init() added
`gsap.set("body", { overflow: "hidden" }); `
so no need to write it on css usefull when user want to disable GScroll on mobile