Animations/Count Up

Count Up

Animate a number counting up from zero (or any value) when it enters the viewport. Perfect for stats sections and dashboards.

import { CountUp } from "@animui/ui"

Basic

0

Users

0.0%

Uptime

$0

MRR

Prefix & Suffix

$0

Revenue

0.0%

Satisfaction

x0.0

Growth

Custom duration

0

500ms — fast

0

2000ms — default

0

5000ms — slow

Props

PropTypeDefaultDescription
tonumberThe target number to count up to.
fromnumber0Starting value.
durationnumber2000Animation duration in milliseconds.
prefixstringString prepended to the number (e.g. '$').
suffixstringString appended to the number (e.g. '%').
decimalsnumber0Number of decimal places to display.
separatorstring","Thousands separator character.
easing"linear" | "ease-out" | "ease-in-out""ease-out"Easing function for the count animation.
triggerOncebooleantrueWhether the animation fires only once when entering the viewport.
classNamestringAdditional classes for the span element.
© 2026 Steal Shadow. MIT License.Report an issue