← Back to Home

stats counter

Animated number counter that smoothly counts from 0 to a target value. Perfect for landing page metrics, dashboards, and any place you want to add visual interest to numbers.

Installation

npm install @thomarket/stats-counter

Usage Example

import { StatsCounter } from '@thomarket/stats-counter';

// Basic counter
<StatsCounter value={10000} />

// With prefix and suffix
<StatsCounter value={2500000} prefix="$" suffix="+" />

// Custom duration and easing
<StatsCounter
  value={100}
  duration={3000}
  easing="spring"
/>

Live Demo

Landing Page Metrics

0+Active Users
$0.0MRevenue
0.0%Uptime

Easing Comparison

0linear
0easeOut
0easeInOut
0spring