Incrementing Counters With JavaScript – slowNumber.js

Category: Animation , Javascript | August 15, 2018
Authorisraelst
Last UpdateAugust 15, 2018
LicenseMIT
Tags
Views1,680 views
Incrementing Counters With JavaScript – slowNumber.js

An automatic incrementing counter written in pure JavaScript for animating numbers from zero to a specified number.

How to use it:

Download and import the ‘slowNumber.js’ library into the document.

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

Wrap the target number into a container with the class of ‘slowNumber’. Done.

<h1 class="slowNumber">100</h1>
<h1 class="slowNumber">10,042</h1>

You Might Be Interested In:


Leave a Reply