Skip to Content
šŸŽ‰Introducing Pumki UI
ComponentsTextCounting Number

Counting Number Animation

A number display component that animates values with a smooth counting effect, perfect for stats, metrics, and dashboards.

Pumki UIPumki UI
0

Installation

Usage


1import { CountingNumber } from '@/components/pumki-ui/text/counting-number';

1<CountingNumber number={5555} />

Example

Using Decimals

Pumki UIPumki UI
0,00

Starting from a specific number

You can start counting from a specific number by using the `fromNumber` prop.

Pumki UIPumki UI
0

Props

PropTypeDefaultDescription
decimalPlaces?number0Number of decimal places
transition?object{ stiffness: 90, damping: 50 }Animation transition config
decimalSeparator?string.Decimal separator character
inViewOnce?booleantrueAnimate only once when in view
inViewMargin?string0pxMargin for in-view detection
inView?booleanfalseForce animation in view
padStart?booleanfalsePad with zeros at start
fromNumber?number0Start counting from this number
numbernumber-Target number to animate
Last updated on