-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Hi, i cannot success to set the progressbar to work as countdown timer. I'd like to set up a countdown timer that start from the end (100) and the line shrink to 0 in 15sec.
var $basic = $('#progressTimer');
var basicBar = $basic.find('.number-pb').NumberProgressBar({
duration: 15000,
style: 'basic',
min: 1,
max: 100,
current: 100
});
var basicLoop = function() {
basicBar.reach(undefined, {
duration: 15000
});
}
basicLoop();
and if its an easiest way to trigger the function, not in 3 separated function like above.
Thank you in advance!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels