Replies: 1 comment 3 replies
-
Hi @7josenox, Thanks for your question. At the time of writing there's no API method that achieves this. But it's a good point, it would be nice to implement something that solves this. The first step would be to expose which slides that belong to what group. This functionality is also needed to implement these two features: Can't promise when I get time to work on this though as I have a lot on my to do list. Best, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using embla-carousel to create a slider for a contact list. Each page can display multiple slides and the user can click on a contact to make it active, which is then saved to storage. Upon returning to the page, I want the system to automatically scroll to the page that the active contact belongs to. However, since the number of slides per page is dynamic based on the user's screen dimensions, I'm unsure of the scroll snap index required for embla's scrollTo method.
Here's the code example
css style for embla slide
.embla__slide { flex: 0 0 var(400px); }
My question is, Is it possible with the current version of embla-carousel to scroll to a certain slide, for example, I want to scroll to the page where slide with index 5 belongs to?
Beta Was this translation helpful? Give feedback.
All reactions