simple-js-counter
v1.0.0
Published
Simple Counter for Website counter component
Downloads
4
Maintainers
Readme
Quick Counter Component for your HTML Websites
This is simply a web counter component for html websites.
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