Is it possible to get activeSlide styling immediately on scroll in Wheel Gesture Plugin? #505
-
Hello, I am trying to create a vertical carousel which is scrollable. I used Wheel Gesture Plugin to achieve it. Issue is active slide is not updated immediately and active-slide styling is not applied until user stops scrolling. I want to show next active slide as soon as user scrolls. I am thinking to add snap scroll but don't know how to add it. Any help will be appreciated. Demo: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @sushantgwr87, Yes. Use the Best, |
Beta Was this translation helpful? Give feedback.
Hi @sushantgwr87,
Yes. Use the
select
andpointerUp
event instead ofscroll
. Example here. I also addedskipSnaps: true
to the carousel options because with that small slide heights it feels weird when it's enforcing scrolling a single slide when the wheel is rolled vigorously.Best,
David