• Resolved Christian Gatti

    (@christian-gatti)


    Hey guys, thanks for this awesome plugin!

    I’ve created a horizontal scrolling section by a “window.addEventListener” on wheel and using “window.scrollBy” method with “evt.deltaY” as value: is there a way I can go through for having the same smooth scroll in this section as in other vertical scroll pages?

Viewing 1 replies (of 1 total)
  • Plugin Author kubiq

    (@kubiq)

    Hello,

    I don’t think that’s possible right now… it is opensource code, so you can try to play with it and commit some enhancements if you want: https://github.com/gblazex/smoothscroll-for-websites/blob/master/SmoothScroll.js

    Or just use some native JS or CSS to smooth scrolling if you are developing custom functionality. In CSS you can specify html, body{ scroll-behavior: smooth } or in JS with that scrollBy you’ve mentioned just use behavior: 'smooth', …but yes, it will feel a little bit different…

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.