[Help]: Manually changing slide doesn't reset autoplay counter #964
-
Summaryright now, when i manually change carousel slide (let's say at 14s), it will be automatically changed just 1 second after because of the Autoplay. is there a way to reset autoplay counter when i manually change slide?
If applicable, which variants of Embla Carousel are relevant to this question?
Additional informationNo response CodeSandbox exampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
davidjerleke
Aug 2, 2024
Replies: 1 comment 1 reply
-
Hi @mohamedaleya, Yes, it’s done like this: emblaApi.plugins().autoplay?.reset() Also see the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mohamedaleya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @mohamedaleya,
Yes, it’s done like this:
Also see the
Autoplay
plugin methods reference section.