Count Up — 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 number ticking up from zero to its target, easing to a stop on the final value
- Install:
npx shadcn@latest add @react-bits/CountUp-JS-CSS - Registry: react-bits · Framework: react · License: MIT + Commons Clause
- Docs and preview: https://reactbits.dev/text-animations/count-up
- Source: https://github.com/DavidHDev/react-bits/blob/main/src/content/TextAnimations/CountUp/CountUp.jsx
- Example: https://skills.varg.ai/previews/lib-react-bits-count-up.mp4?v=9566 (Captured from the library’s own demo page (React Bits))
- 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 Count Up from React Bits (https://reactbits.dev/text-animations/count-up, MIT + Commons Clause: OK in a video). Install with npx shadcn@latest add @react-bits/CountUp-JS-CSS and use it for stat beats: users, revenue, percent growth, set large and centred or beside a label. Set from, to, duration, separator, prefix/suffix, decimals and easing. It animates with Motion once it scrolls into view. For video, compute value = from + (to - from) * ease(clamp((frame - startFrame) / (duration * fps), 0, 1)) and format it the same way.
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