pughpugh / react-countdown-clock

HTML5 canvas countdown clock React component
ISC License
187 stars 83 forks source link

Countdown from a specific time #50

Open kolaf opened 6 years ago

kolaf commented 6 years ago

When counting down the time between two events it would be good to have the start reference of the countdown the time of the previous event. As it is now the time will start at 0% (or 100%) when you load it, regardless of how much time has passed since the previous event. The percentage count for the countdown will then be wrong since it counts down from now and not the previous event time.

Is it possible to add another parameter to enter the time counted down from? From the source code it doesn't look too difficult, but are mainly a Python developer and I'm having enough trouble getting reacts to work, without having to try to play with what looks like coffee script :-)

ghost commented 5 years ago

Is there any follow-up on this? I have made a few changes that contribute towards this and would be happy to open a PR.