1.0.0 • Published 1 year ago

simple-js-counter v1.0.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
1 year ago

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

AttributesExplanation
data-count-targetThe maximum count value
data-count-speedThe 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