Copied to clipboard

Advance Count up Animation

Scroll
Attributes
Thumbnail for advance count up animation

About This Resource

Unlike traditional count animations where the numbers simply increase and non-numeric characters aren't supported, this advanced count-up animation solution for Webflow offers four different animation types and allows you to include non-numeric characters as well.

Resource Documentation

Core (Essential for Functionality)

Add the following script before the closing body tag.

<script src="https://cdn.jsdelivr.net/gh/hadiaslam-repo/pro-webflow-components/pro-count-animation.js"></script>

Add pro-count-element to define the element you want to animate.

Name
pro-count-element
Value
true
true
true

Add this attribute to the element you want to animate, this will create a basic count up animation

Visual guide for adding pro-count-element attribute

You do not need to define the target value separately — it will automatically be taken from the element's text content.

It’s not necessary to create a separate span for non-numeric text. Simply add the attribute to your text element — the non-numeric content will remain static while the digits animate.

Customization (Optional Enhancements)

Add pro-count-direction to define the animation direction

Name
pro-count-direction
Value
up
down
alternate

You can override the default animation by adding this attribute, which gives you the option to choose from three different animation directions.

Visual guide on adding pro-count-direction attribute

You can add this attribute to the parent element, and all pro-count-element elements inside will inherit it. This makes it easier to manage multiple elements at once.

Visual guide on adding pro-count-direction attribute to a parent element

Add pro-count-duration to define the duration

Name
pro-count-duration
Value
{{duration in seconds}}

Add this attribute to define the animation duration. In the value field, simply enter the number of seconds.

Visual guide on adding pro-count-duration attribute

The default duration is 2 seconds. You can set a minimum of 1 second and a maximum of 5 seconds. If you enter a value less than 1, the animation will run at 1 second. If you enter a value greater than 5, the animation will run at 5 seconds.

You can add this attribute to the parent element, and all pro-count-element elements inside will inherit it. This makes it easier to manage multiple elements at once.

Add pro-count-flip to define the no of flips

Name
pro-count-flip
Value
{{number of flips}}

Add this attribute to define the no of flips per digit

Visual guide on adding pro-count-flip attribute

Flip defines the number of rotations each digit will perform before landing on the target digit. For example, if the flip value is set to 5, each digit inside the pro-count-element will rotate 5 times before settling on the target number.

The default number of flips is 10. The minimum allowed is 3 and the maximum is 10. If you enter a value less than 3, it will default to 3; if you enter a value greater than 10, it will default to 10.

You can add this attribute to the parent element, and all pro-count-element elements inside will inherit it. This makes it easier to manage multiple elements at once.

Add pro-count-delay to add a delay before animation

Name
pro-count-delay
Value
{{delay in seconds}}

Add this attribute to define the amount of delay in seconds before animation begins

Visual guide on adding pro-count-delay attribute

This is useful if your pro-count-element is placed in the hero section and you also have a preloader

You can add this attribute to the parent element, and all pro-count-element elements inside will inherit it. This makes it easier to manage multiple elements at once.

Add pro-count-stagger to remove the stagger

Name
pro-count-stagger
Value
none

Add this attribute to remove the stagger from you flip animations

Visual guide on adding pro-count-stagger attribute

By default, the flip animations have a stagger effect between digits, but you can disable it if needed.

You can add this attribute to the parent element, and all pro-count-element elements inside will inherit it. This makes it easier to manage multiple elements at once.

Add pro-count-number to remove the gap between digits

Name
pro-count-number
Value
same

Add this attribute to remove the extra white space between digits

Visual guide on adding pro-count-number attribute

Sometimes, you might notice a slight gap between digits when using the flip animation. This happens because each digit has a different width, and it's especially noticeable when the number '1' appears in your target value. However, this doesn’t happen with every typeface. What the pro-count-number attribute does is generate all the dynamic numbers using the same digits as the target value. This ensures the overall width remains consistent.

Before and after of adding pro-count-number attribute

You can add this attribute to the parent element, and all pro-count-element elements inside will inherit it. This makes it easier to manage multiple elements at once.

Use This Solution Multiple Times on a Page

Share This Resource

Resource Examples

Example 1 - Default Count Up

Example 2 - Direction Up

Example 3 - Direction Down

Example 4 - Direction Alternate🔥