var year = new Date().getFullYear();
var options = {
value: new Date(year + '-01-01'),
captions: {
days: 'Days',
hours: 'Hours',
minutes: 'Minutes',
seconds: 'Seconds'
},
showDays: 3
};
var ft = new FancyTimer(
document.getElementById('container'),
options
);
Time left to new year (light theme)
var options = {
value: new Date((year + 1) + '-01-01'),
captions: {
days: 'Dias',
hours: 'Horas',
minutes: 'Minutos',
seconds: 'Segundos'
},
showDays: 3,
reverseAnimation: true
};
var ft = new FancyTimer(
document.getElementById('container'),
options
);