[Help]: How do I get the next scroll snap? #1089
-
Which variants of Embla Carousel are relevant to this feature request?
Feature descriptionpreviousScrollSnap method returns the previous item index but there is missing method to get next item's index. Additional ContextNo response Before submitting
|
Beta Was this translation helpful? Give feedback.
Answered by
davidjerleke
Dec 19, 2024
Replies: 1 comment 1 reply
-
@erkanaltinors you can get the next scroll snap index like so: const nextSnapIndex = emblaApi.internalEngine().index.add(1).get(); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
erkanaltinors
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@erkanaltinors you can get the next scroll snap index like so: