HTML-NUMBER-ANIMATE is a lightweight JavaScript library for animating numbers on web pages, allowing smooth transitions between numerical values
demo.mp4
- Add script right before closing <body> tag:
<script src="https://cdn.jsdelivr.net/gh/BossEmma/Number-Animate/number_animate.js"></script>
- Set the object class name to "number-animate":
<div class="number-animate"></div>
- Adjust behaviour by using number-animate-*:
<div class="number-animate">
number-animate-start= "0"
number-animate-end= "100"
number-animate-increment= "10"
number-animate-delay= "20"
</div>
This defines the count starting point
This defines the count end point
This defines the number at which the count increases by
This defines the delay in milliseconds between each count