Impact Stats
Odometer counters: every digit is a reel spinning to its value on its own spring when the row scrolls in — right-most digits settle last, like a mechanical counter.
Try it: Scroll into view — the digits roll.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/impact-stats.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/impact-stats. You can also copy the source into components/ui/impact-stats.tsx (view on GitHub).
Usage
import { ImpactStats } from '@/components/ui/impact-stats'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
stats | ImpactStat[] | 4 sample stats | { value, label, prefix?, suffix?, decimals?, detail? } |
className | string | — | Extra classes merged onto the root. |
Dependencies
motion
Related Portfolio components
- Testimonial Carousel
Large display-type quotes sliding on direction-aware springs with swipe/drag, arrow keys and a progress-filled dot for auto-advance. Pauses on hover, focus and drag.
- Skill Meters
Radial gauges that sweep to their value on scroll-in: glowing gradient arc, a comet dot on the tip and a live count-up. Staggered, replayable and exposed as ARIA meters.
- Client Logo Strip
A calm trust row of generated marks with a cursor-following spotlight that lights hairline borders; marks lift and spin a few degrees on hover/focus.
- Skills Marquee
Two counter-rotating rails of skill pills. Hover or keyboard focus pauses, a visible Pause button covers touch and WCAG 2.2.2, and reduced motion becomes a calm wrapped list.
- Contact Form Card
Validated on blur and submit with announced inline errors (shake + focus jump), optional async onSubmit with a sending morph, a drawn-check success scene with a particle burst, and a failure state…
- Career Timeline
A vertical line that draws itself as you scroll with a glowing head; milestone nodes pop on springs and cards slide in from alternating sides.