-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Labels
Description
Try to initialize countdown with negative remaining time (i.e. seconds
> duration
):
let timeLimit = 10;
let timeElapsed = 15;
let $countdown = $("#countdown").timer({
countdown: true,
duration: timeLimit + 's',
seconds: timeElapsed
});
Expected result: -5 sec
Actual result: -1:0-5 min
Demo: https://jsfiddle.net/naXa/gmcbfd4w (v0.7.1) and https://jsfiddle.net/naXa/gmcbfd4w/9 (v0.9.0)
It would be nice to have an endless countdown which:
- doesn't stop when reached 0.
- looks nice with negative time values.
- can be initialized with negative
duration
.