AnimatedCounter
A smooth animated counter component for displaying numerical values.
Usage
Props
value
The numerical value to display and animate.
Type: number
formatOptions
Options for number formatting using Intl.NumberFormat.
Type: Intl.NumberFormatOptions (optional)
Features
Smooth Animation
Uses Framer Motion spring animations for smooth, natural-feeling transitions between values.
Intersection Observer
Animation starts when the counter comes into view, improving performance and user experience.
Flexible Formatting
Supports all Intl.NumberFormat options for formatting currencies, percentages, and more.