- Location:
sabo/src/components/ui/number-ticker.tsx
When to use
- Show KPI counts that animate into place (e.g., “12,345 users”).
- Prefer short ranges to avoid long-running animations.
Usage
sabo/src/components/ui/number-ticker.tsx
Key props
The target number to animate to.
The number to start the animation from.
Animation direction: count up or down to the target value.
Delay in seconds before starting the animation.
Number of decimal places to display.
Additional CSS classes applied to the span element.
Styling tip
- Use large, bold typography and monospace figures for consistent width (
tabular-nums). - Avoid combining with other animations in the same viewport to reduce motion overload.