• Docs
  • Components
  • Number Counter

NumberCounter - Aspect UI

The NumberCounter component animates counting numbers for visualizing metrics or stats. It supports duration, easing, formatting, and triggers on scroll.

Table of Contents#

NumberCounter Props#


PropTypeDefaultDescription
endnumber-The target number value to count up to.
durationnumber2000Duration of the counting animation in milliseconds.
decimalsnumber0Number of decimal places to display.
onVisiblebooleanfalseIf true, animation triggers when the component becomes visible in viewport.
repeatOnVisiblebooleanfalseIf true, animation repeats every time the component becomes visible.
classNamestring''Additional CSS classes for the counter element.
...restHTMLAttributes<HTMLDivElement>-Any other HTML attributes passed to the root container.