Closed tomolas closed 10 years ago
I have the same doubt. I would like to make a counter incrementasse as provided number, something like:
var counter = $('.counter').FlipClock(100, {clockFace: 'Counter'});
setTimeout(function() {
setInterval(function() {
counter.increment(10);
}, 1000);
});
You can set the value to anything you want. Just check the faces/counter.js to reference the available methods.
// Instantiate a counter
clock = $('.clock').FlipClock(0, {
clockFace: 'Counter'
});
// Attach a click event to a button a increment the clock
$('button').click(function() {
clock.setValue(10);
});
How would you make the basic counter example to count in increments different than 1?