Synching the animation and remaining time "manually" #210
Unanswered
ofirTelecareBill
asked this question in
Q&A
Replies: 1 comment
-
Hey @ofirTelecareBill, how about passing a |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Your CountdownCircleTimer is awesome!! My usecase is a bit particular - I'm combining your component with an IdleTimer component, so when the mouse doesn't move (idle), the timer starts counting from 60 sec down to 0. Since I need to use the IdleTimer timer (and not yours), I'm updating your render() function with my value coming from the IdleTimer:
This all works perfectly, but my problem is that when the user touches the mouse, the timer resets to 60 but your animation continues on. I was wondering if the animation could somehow be relative to remainingTime - so when the user touches the mouse, animation goes starts back at 0.
Beta Was this translation helpful? Give feedback.
All reactions