Number Ticker
Counts to a value when scrolled into view with locale-aware grouping and tabular figures; re-animates from the current value when it changes.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/number-ticker.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/number-ticker. You can also copy the source into components/ui/number-ticker.tsx (view on GitHub).
Usage
import { NumberTicker } from '@/components/ui/number-ticker'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
value | number | — | Target value. |
duration | number | 1400 | Count length in ms (expo-out). |
decimals | number | 0 | Fraction digits. |
prefix / suffix | string | '' | Text around the number. |
startValue | number | 0 | Where the first count starts. |
locale | string | browser | BCP 47 locale for grouping. |
separator | boolean | true | Group thousands (12,840). |
delay | number | 0 | Delay before the first count (ms). |
Related Text Animations components
- Infinite Marquee
Seamless looping strip with masked edge fades; pauses on hover, focus or with an optional pause button. Wraps statically under reduced motion.
- Typewriter
Types and deletes through phrases.
- Scroll Text Fill
A large editorial statement whose words light up one by one as you scroll, each rising a few pixels into place; accent words get a sweeping underline. The full sentence is exposed to screen readers…
- Morphing Text
Overlapping blur-morph between phrases, aligned for inline sentences; pauses on hover.
- Charm Text
A sentence with a few enchanted words. Hover, focus or tap one and it recolours, draws an underline and a tiny glyph pops out on a spring; click pins it on. A chip variant sets glyph pills inline…
- Scramble Text
Characters decode from noise into place.