Skip to content

amasad/timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timer

image

Usage

component install amasad/timer
var Timer = require('timer');
var $ = require('jquery');

var timer = new Timer({
  interval: 15,
  outerRadius: 50,
  onComplete: function () {
    alert('complete');
  }
});
$(timer).on('step', function (e, timeleft) {
  console.log(timeleft);
});

$('body').append(timer.$el);

timer.start();

About

Timer countdown component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published