Skip to content

Instantly share code, notes, and snippets.

@che-wf
Last active April 22, 2016 13:35
Show Gist options
  • Select an option

  • Save che-wf/f78043c0d2440afb600e to your computer and use it in GitHub Desktop.

Select an option

Save che-wf/f78043c0d2440afb600e to your computer and use it in GitHub Desktop.
Flip Counter Counting Up
var startD = new Date("April 7, 2015")/3600;
var currD = new Date()/3600;
var diffD = Math.abs(currD - startD);
var time = Math.ceil(diffD)+10000;
var clock = $('.flip-counter').FlipClock(time, {
clockFace: 'Counter'
});
setTimeout(function() {
setInterval(function() {
clock.increment();
}, 4622);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment