Skip to content
Discussion options

You must be logged in to vote

The only way I could think of right now is to use this object returned in the renderer or other callback functions: https://github.com/ndresx/react-countdown#renderer. There's a total value that basically represents the time left in milliseconds. Since you know the initial time, you could use one of the callbacks or https://github.com/ndresx/react-countdown#calctimedeltadate-options to calculate the initial total time left, and then do the rest of the math by calculating the percentage between this initial total and the current total. Does this help?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@PlacidSerene
Comment options

@PlacidSerene
Comment options

@ndresx
Comment options

Answer selected by PlacidSerene
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