0.1.6 • Published 3 years ago

infinite-time-progress-bar v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Infinite Time Progress Bar

Progress bar component based on Time

Preview

Preview

Installation

npm i infinite-time-progress-bar

Usage

  1. include this files in your layout:
  • /dist/css/infinite-time-progress-bar.min.css
  • /dist/js/infinite-time-progress-bar.min.js
  1. Put this html in your layout
<div id="my-time-progress-bar" class="infinite-time-progress-bar fade hide">
      <svg width="47" height="47">
        <circle
          class="time-progress-bar-circle"
          stroke="white"
          stroke-width="3"
          r="21"
          cx="75"
          cy="75"
        />
      </svg>
      <p></p>
</div>
  1. Create new instance from InfiniteTimeProgressBar class
<script>
  const options = {
                 selector: "#my-time-progress-bar",
                 duration: 10000,
                 callback: yourCallbackFunction
              },
      progressBar = new InfiniteTimeProgressBar(options).render()
</script>

Options

optiontypeDescriptiondefault
selectorstringYour element id or class.infinite-time-progress-bar
durationintegerRemaining time to execute callback function(based on millisecond, minimum: 1000)5000
callbackfunctionCallback function for execute when timer is endedVoid

Donate

If this package is useful, you can donate from this ways:

Cryptocurrencies:

Bitcoin - BTC:

Address: bc1qtzq68pnjecf00rn4qkejupx0l9jjcaxh33gnd3

Dogecoin:

Address: DM2iNgwmSY5obYpfEc9w8BhB4cvQ87Lbkz

Etherium - ETH:

Address: 0x92F2D8D41a919c81a9812B78367F4C82c8Bc18d8

Tether - USDT:

Address: TM4qiWApB2NyU2epVn5tfUd5ANstMQtkjK

Tron - TRX:

Address: TM4qiWApB2NyU2epVn5tfUd5ANstMQtkjK

0.1.4

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago