simplyCountdown.js icon indicating copy to clipboard operation
simplyCountdown.js copied to clipboard

Feature: trigger function when days, hours, minutes turn to 0

Open bkmorse opened this issue 5 years ago • 1 comments

Or add the option to remove 0 days, 0 hours, 0 minutes automatically.

so:

0 days 0 hours 22 minutes 30 seconds

would be:

22 minutes 30 seconds

bkmorse avatar Apr 22 '19 15:04 bkmorse

It should be a great option, if you want to contribute you're welcome :smiley:

That may be easly made by adding a new option like autoRemove: true. With default to false. I suggest to add a parametric class to the main countdown element like -autoremove if set to true to easly update the countdown CSS in that case.

Then, most of the work is to implement conditional checks to hide unwanted elements.

VincentLoy avatar Apr 24 '19 10:04 VincentLoy