Skip to content

Continue in negative once the timer is finished ? #218

Answered by vydimitrov
GaylordP asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @GaylordP, I assume that you want the progress bar that shows the remaining time to be gone as well (because when the remaining time is 0 then there is no progress bar). If that is the case, the thing you can do is once it is over, you set the option to repeat the timer and this time set the colors prop to be rgba(0,0,0,0) so it is transparent and you will need to control the display time to be a negative number, for that you can use the elapsedTime prop from the children prop and just add - or -Math.floor(elapsedTime).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GaylordP
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants