Count Up

Animate numbers counting up to a specific value. Perfect for dynamic stats or milestones on your site.

Copy the Count Up <script> and paste into the <head> of your page.

<!-- [WebTricks by CodeRaccoons] - Count Up --> <script async src="https://cdn.jsdelivr.net/gh/TheCodeRaccoons/WebTricks@1/Dist/Functional/CountUp.min.js"></script>

Required attributes

Count Up - Counter Element

Attribute to add

Namewt-countup-element
Valuecounter

Instructions

Assign this attribute to the element that will show the count-up value.

How does it look?

Count Up - Counter Element example
Count Up - Target Value

Attribute to add

Namewt-countup-target
Value0 (default)

Instructions

Set this attribute to the target number the counter should reach.

How does it look?

Count Up - Target Value example

Optional attributes

OptionalCount Up - Step

Attribute to add

Namewt-countup-step
Value1 (default)

Instructions

Set this attribute to define the increment value for counting up.

How does it look?

Count Up - Step example
OptionalCount Up - Speed

Attribute to add

Namewt-countup-speed
Value10 (default)

Instructions

Set this attribute to control the speed of the count-up animation.

How does it look?

Count Up - Speed example
OptionalCount Up - Prefix

Attribute to add

Namewt-countup-prefix
Value{Prefix value}

Instructions

Set this attribute to add a prefix (e.g., currency symbol) before the number.

How does it look?

Count Up - Prefix example
OptionalCount Up - Suffix

Attribute to add

Namewt-countup-suffix
Value{Suffix String}

Instructions

Set this attribute to add a suffix (e.g., unit) after the number.

How does it look?

Count Up - Suffix example

Working examples