Sliding Number — 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.
An odometer number whose digits roll on little wheels up to their final value
- Install:
npm install @animate-ui/react motion - Registry: animate-ui · Framework: react · License: MIT + Commons Clause
- Docs and preview: https://animate-ui.com/docs/primitives/animate-ui/sliding-number
- Source: https://github.com/imskyleen/animate-ui/blob/main/packages/react/src/primitives/texts/sliding-number/index.tsx
- Example: https://skills.varg.ai/previews/lib-animate-ui-sliding-number.mp4?v=30231 (Captured from the library’s own demo page (Animate UI))
- 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
Show a stat with Animate UI's Sliding Number (https://animate-ui.com/docs/primitives/animate-ui/sliding-number, MIT + Commons Clause): npm install @animate-ui/react motion, then <SlidingNumber number={12500} fromNumber={0} thousandSeparator="," /> at display size, centred or beside a label. Each digit sits on a wheel positioned in percent of its own height; with fromNumber it counts on a spring (stiffness 90, damping 50) and every digit rolls on the way. Motion's springs run on wall-clock time, so for the render compute the current value from the frame (Remotion: spring({ frame, fps, config: { stiffness: 90, damping: 50 } }) mapped from fromNumber to number) and place each wheel from that value; in HyperFrames tween a value in a paused GSAP timeline and write the digits on update. Set decimalPlaces and padStart as needed.
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