Basic Number Ticker — primitive for stats & kpis (react)
For AI agents: find the right skill in one call —
curl -s "https://skills.varg.ai/api/search?q=<what the person wants>"returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add.mdto its path. Before generating anything, show the person the options on the use-case page.
A large percentage counting up from zero to its target, easing out on the final number
- Install:
npx shadcn add @fancy/basic-number-ticker - Registry: fancy · Framework: react · License: MIT
- Docs and preview: https://www.fancycomponents.dev/docs/components/text/basic-number-ticker
- Source: https://github.com/danielpetho/fancy/blob/main/src/fancy/components/text/basic-number-ticker.tsx
- Example: https://skills.varg.ai/previews/lib-fancy-basic-number-ticker.mp4?v=22642 (Captured from the library’s own demo page (Fancy Components))
- Time: Drive from the frame. Runs on its own clock (requestAnimationFrame, timers, springs or CSS). Drive it from frame / fps before rendering, or the render drifts.
- Runs: local render, free
- Aspect: any
Prompt that renders it frame-exact
Use Basic Number Ticker from Fancy Components (https://www.fancycomponents.dev/docs/components/text/basic-number-ticker, MIT). Install with npx shadcn add @fancy/basic-number-ticker after adding the @fancy registry to components.json. Use it for a stat beat: a big centred number with a % or unit, followed by a one-line label. Set from, target and the transition (duration, ease), and format with Intl.NumberFormat. It runs Motion's animate() on a motion value at mount. In the render, compute value = from + (target - from) * ease(clamp((frame - startFrame) / (duration * fps), 0, 1)), and set autoStart={false}.
Used in
- Product launch film
- Feature announcement
- Sale & offer promo
- Testimonial & review ad
- Us vs them & before / after
- Top-N listicle
- Post to video
- Quiz, poll & would-you-rather
More stats & kpis
- Apple Money Count —
npx hyperframes add apple-money-count - Count Up —
npx hyperframes add count-up - Count-Up Stat Card —
npx hyperframes add mk-progress-stat - Number Wheel —
npx hyperframes add number-wheel - Bauhaus Build —
npx shadcn@latest add @remocn/bauhaus-build - Hand Count —
npx shadcn@latest add @remocn/hand-count