Open JasonShin opened 7 years ago
You can set the easing with CSS on the DIV with the scrollbar e.g.:
.wrapper{ scroll-behavior: smooth; }
I think it would be simpler to make a slight change to the code base to use the following:
window.scrollTo({ Top: Y, Left: X, behavior: 'smooth' })
Hey, thanks for a great library.
Any idea how to apply easing while it's doing the scroll? Currently, scroll to is happening instantly.