PIT Designs Logo

How to Create Animated Number Counters in Oxygen

I'm the owner and founder of PIT Designs. I love creating digital presence and creative digital solutions for our clients.


Posted 1 year ago on June 6th, 2020.

Related To:


pCloud Lifetime Up to 35% OFF AliDropship Plugin

Animated number counters are seen on many landing pages. They bring a cool effect (movement) to the page and convey some important information or quick facts in numbers.

There are limitless ways to put the number counters to use. Could be projects done, clients, staff, lines of code, etc.

We used 4 animated number counters in Oxygen, when redesigning our landing page for PIT Designs & Consultancy - Melbourne Web Design.

How to Create Animated Number Counters in Oxygen
Number counters sample - as seen on PIT Designs landing page

So let's get started with a step by step tutorial on how to create this cool element in Oxygen, using JS and CSS for styling.

Creating animated number counters in Oxygen, using JS & CSS

Add Counter-Up JS

For this to work, we will take advantage of jquery.counterup.js by @bfintal. head to https://github.com/bfintal/Counter-Up
And download jquery.counterup.min.js, upload it to your server.

Include Both JS in Code Box

Add Code block in Oxyge, in the HTML section, add two external JS links. First is the one you uploaded from step one.
The second is this
https://cdnjs.cloudflare.com/ajax/libs/waypoints/2.0.3/waypoints.min.js
So you have two JavaScripts now. Refer to the above image.

jQuery to Trigger the Effect

In the same Code Block you added, go to JavaScript section and add this jQuery code:

jQuery(document).ready(function($) {
jQuery('.fancycount').counterUp({
delay: 10,
time: 1500
});
});

This jQuery basically calls the counter up script we added in step one. Which makes the whole thing work.

Add the Numbers

At this point, we have the scripts ready to animate number counters. All that's left is adding a text element, and writing the number we want in.
Add text element, and give it a class of fancycount. as shown in the above image.

Final Step

Duplicate the text element, for as many times as you want, edit each text with a different number. And style it as you wish with CSS.
since you will be using the same class for all text elements, styling one of them, will apply to all.


For any further questions, leave a comment below.

4/5 (4 Reviews)
Do we all agree that Coffee is the fuel that feeds the free content creating?
5 Top CRMs Solutions for Real Estate Professionals

About 90% of companies are using CRMs as a scheme to reinforce trust with customers. It’s not a choice but […]

How to Optimize Marketing Content to Get Hits Among International Customers

Whether you operate as a small business or an international company, reaching out to potential customers worldwide is always a […]

How Mobile Apps Can Help In Optimizing Business Growth

With the increase in the use of smartphones all around the world, businesses nowadays are finding new ways to connect […]

10 Greatest Challenges the Virtual Teams are Facing Now

The advance of technology has made it easy to work with different teams across different geographic locations. A ship manufacturer […]

Emerging Trends & Technologies in the Automobile Sector

The automotive industry is changing substantially as the time passes and the technological innovations are the reason behind this change. […]

5 Famous Entrepreneurs & Their Way to Success

 In business, if you want to reap success, it’s important to look at past stories of successful entrepreneurs. This article […]

5 Effective Customer Engagement Strategies

Do you know that customers are the lifeblood of business? And without them, a business cannot survive?  According to a […]

Leave a Reply

Your email address will not be published. Required fields are marked *

2 comments on “How to Create Animated Number Counters in Oxygen”

menu-circlecross-circle