gscroll icon indicating copy to clipboard operation
gscroll copied to clipboard

Little redefined GScroll for future enhancement

Open Dushyant1295 opened this issue 4 years ago • 0 comments

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

Dushyant1295 avatar Dec 03 '21 17:12 Dushyant1295