Back to Components
Display
Animated Counter
Counts up to a target value with Framer Motion easing, optional prefix and suffix, and locale formatting.
$0
Monthly recurring revenue
Dependencies
- clsx
- tailwind-merge
- framer-motion
Files
- components/ui/animated-counter.tsx
Installation
Using shadcn CLI
npx shadcn add animated-counter --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge framer-motion