jQuery倒计时插件TimeTo jQuery plugin - timer countdown digital clock

«TimeTo» jQuery plugin demo

Countdown timer

Set countdown in seconds with callback

$('#countdown').timeTo(120, function() { alert('Countdown finished'); }); 

Hide hours

$('#countdown').timeTo({
    seconds: 100,
    displayHours: false
}); 

Set countdown to specified date-time

$('#countdown').timeTo(new Date('')); 

Set captions and dark theme

$('#countdown').timeTo({
    time: '',
    displayDays: 2,
    theme: "black",
    displayCaptions: true,
    fontSize: 48,
    captionSize: 14,
    lang: 'es'
}); 


Digital clock

$('#clock-1').timeTo();

 

Digital clock with Step Setting and Step Callback

    $('#clock-w-step-cb').timeTo(
        {
            step: function() {
                console.log('Executing every 3 ticks');
            },
            stepCount: 3
        }
    );