CountUp.js is a great library to animate numbers on your webpage. Here’s how you can use it to animate numbers with custom duration and prefixes.
To use CountUp.js in your project, you can install it using Yarn:
yarn add countup.js --save
After installation, import CountUp.js into your JavaScript file:
<script src="assets/libs/apexcharts/apexcharts.min.js"><script/>
<script src="assets/js/pages/countup.init.js"><script/>
The number will animate from 0 to the target value with the specified duration, showing the prefix and adding separators for thousands. For example, the output would look like:
With CountUp.js, you can easily animate numbers and add visual flair to your webpages. The library is highly customizable and supports prefixes, duration, and separator customization.
Be the first to know about new updates and exclusive discounts. No spam, just great offers!
How about
With over 7 years of experienced team, we specialize in delivering custom projects for startups, blue-chip companies, and government agencies. We have successfully completed over 250+ projects, providing tailored solutions that meet the unique needs of each client.
Support© Herozi Design & Develop by Codebucks.