Closed anotherempty closed 2 years ago
This might require a few changes, but I will probably add this feature when I find the time!
Added in 2.0.5 (ce19972)!
Just set scrollToBehaviour
to auto
(it's instant
by default to maintain backwards compatibility).
Passing over an easing function is unfortunately not possible.
Let me know if there's any problems!
Can you add a scroll animation when using scrollToIndex ? and if possible allow an easing function to be passed as a parameter for the scrolling animation ?