[Feat]: Consistent slide transitions / timing regardless of index position #1099
Replies: 2 comments
-
Hi @WhiskeyBest Code i used in demo
|
Beta Was this translation helpful? Give feedback.
-
Hi @WhiskeyBest,
Thank you for your question. How do you handle the hidden slides? You should filter out the hidden slides by providing a selector that only selects visible slides. Use the slides option to achieve this if you haven't already. Additionally, you should run |
Beta Was this translation helpful? Give feedback.
-
Which variants of Embla Carousel are relevant to this feature request?
Feature description
First of all, Embla carousel has been working fantastic for us! Thank you.
We're currently using Embla as the foundation for our stepper / onboarding wizard. Being a stepper, the user is able to use the scrollTo method to jump to and from any step in the wizard. Additionally we also "hide" certain slides based on some admin-related settings.
One thing we've noticed is that the sliding animation between slides directly adjacent to each-other index-wise is very nice and smooth. However, if it needs to "jump" a hidden slide, or navigate to a slide a few indices away from each other, the sliding animation is quite fast and a bit jarring.
It would be really nice to have an option to force the transitions and timings between slides to remain consistent regardless of their relative positions.
Thanks again for all the amazing work on Embla!
Additional Context
Additional details here...
Before submitting
Beta Was this translation helpful? Give feedback.
All reactions