Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling to a Specific Element in a Multi-Element Slide #417

Open
kowalczyk-mateusz opened this issue Apr 3, 2024 · 0 comments
Open

Scrolling to a Specific Element in a Multi-Element Slide #417

kowalczyk-mateusz opened this issue Apr 3, 2024 · 0 comments

Comments

@kowalczyk-mateusz
Copy link

I have a navigation system that includes multiple elements. I've set 'auto' for the perView option. When the URL changes, I would like the slider to move to the current element in the navigation. I'm not sure how to do this because moveToIdx takes the index of the given slide, but currently I have several elements fitting on one slide. The moveToIdx function with the absolute parameter is not working for me. Is there a way to scroll the element but to the index of the element from the array that was passed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant