Replies: 1 comment
-
@todor0v have you seen the new progress bar I've added to the autoplay example in the docs? With recent changes, it's now easy to build a progress bar that doesn't get out of sync. See this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I'm using Embla Carousel with a combination of
stopOnMouseEnter
andstopOnInteraction
. This causes an undesired behavior. Specifically, when you hover out, instead of the animation continuing from where it left off, it resets to zero. For example, you have to wait another four seconds for the next slide to appear, rather than skipping the time that already passed before you hovered. I'm using a progress bar that tracks the time until the next slide, which makes this issue very noticeable.This is how I am tracking the progress and play/pause my custom progress bar:
Please let me know if you believe that I am doing something wrong. Thank you!
If applicable, which variants of Embla Carousel are relevant to this question?
Additional information
No response
CodeSandbox example
No response
Beta Was this translation helpful? Give feedback.
All reactions