SVG Based Circular Timer Plugin For jQuery - Circle Timer

File Size: 11.1 KB
Views Total: 12019
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
SVG Based Circular Timer Plugin For jQuery - Circle Timer

Circle Timer is a very lightweight jQuery plugin that lets you create a SVG-based circular pie-style countdown timer and triggers a custom callback function once the timer is complete.

See also:

How to use it:

1. Add references to jQuery library, circletimer.min.js and circletimer.css in your document.

<script src="jquery.min.js"></script>
<script src="dist/circletimer.min.js"></script>
<link href="dist/circletimer.css" rel="stylesheet">

2. Create the html elements for the countdown timer.

<div id="example-timer"></div>
<p>Time Elapsed: <span id="time-elapsed">0</span>ms</p>

3. Create controls to start, stop, pause, resume the countdown timer.

<button id="start">Start</button>
<button id="pause">Pause</button>
<button id="stop">Stop</button>

4. Initialize the countdown timer and enable the controls.

$(document).on("ready", function() {
    onComplete: function() {
      alert("Time is up!");
    onUpdate: function(elapsed) {
    timeout: 5000

  $("#start").on("click", function() {

  $("#pause").on("click", function() {

  $("#stop").on("click", function() {

4. Default options.


  // timeout
  timeout: 5000,

  // callbacks
  onComplete: (function() {}),
  onUpdate: (function() {})

Change log:


  • v1.0.0


  • Add option to increase time while timer is going

This awesome jQuery plugin is developed by abejfehr. For more Advanced Usages, please check the demo page or visit the official website.