simple-js-counter

1.0.0 • Public • Published

Quick Counter Component for your HTML Websites

This is simply a web counter component for html websites.

Github

Facebook

Twitter

How to

Simply link the script to your code and use like below.

    <script src="counter.js"></script>

Attributes

Attributes Explanation
data-count-target The maximum count value
data-count-speed The count speed for your counter

Example

   <div class="counter" data-count-target="1000" data-count-speed="0.5">0</div>

The greater the speed, the slower the counter. Speed from 0.1 to 10 are recommended You can style the container however you want

Package Sidebar

Install

npm i simple-js-counter

Weekly Downloads

0

Version

1.0.0

License

GPL-3.0-or-later

Unpacked Size

2.62 kB

Total Files

4

Last publish

Collaborators

  • agbortoko