Skip to contentFacade Pro is $149 once during launch, then $199. Lifetime updates.
Facade
Browse the library

Components / Data

Animated counter

Free

Number that counts up when scrolled into view, with prefix, suffix, decimals and Intl formatting.

Installation

$npx shadcn@latest add https://facadeui.com/r/animated-counter.json

Usage

import { AnimatedCounter } from "@/components/facade/animated-counter";

export default function Page() {
  return <AnimatedCounter />;
}

Props

AnimatedCounterProps is exported, so you can extend or wrap it. Every prop has a default; <AnimatedCounter /> renders the example above.

Props of AnimatedCounter
PropTypeDescription
value*numberTarget value.
fromnumberStarting value. Defaults to 0.
prefixstringText before the number, e.g. "$".
suffixstringText after the number, e.g. "+", "M", "%".
decimalsnumberFixed number of decimals. Defaults to 0.
localestringBCP 47 locale for Intl.NumberFormat. Defaults to "en-US".
formatOptionsIntl.NumberFormatOptionsExtra Intl.NumberFormat options (merged after decimals).
durationnumberAnimation duration in seconds. Defaults to 1.8.
delaynumberDelay in seconds once in view. Defaults to 0.
oncebooleanAnimate only the first time it enters the viewport. Defaults to true.
classNamestring

* required

Ask your agent

With the Facade MCP server connected, this prompt is enough:

Add the Facade animated counter to this page and adapt the copy to our business.