CountUp.js Demo

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.

Installation

To use CountUp.js in your project, you can install it using Yarn:

yarn add countup.js --save
Import CountUp.js

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/>
Final Output

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:

Conclusion

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.

Receive the latest updates directly in your inbox!

Be the first to know about new updates and exclusive discounts. No spam, just great offers!

How about

A Custom Project?

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
More for Herozi
Herozi Admin & Dashboard Template
160+

Total Pages

6+

Layouts

60+

Components

We provide quick support withing one business day to all of our customers.

© Herozi Design & Develop by  Codebucks.