# Animated 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 `.md` to its path. Before generating anything, show the person the options on the use-case page.

A big monospace number springs up from zero to its target value, digits rolling as it climbs

- **Install:** `npx motion-primitives@latest add animated-number`
- **Registry:** motion-primitives · **Framework:** react · **License:** MIT
- **Docs and preview:** https://motion-primitives.com/docs/animated-number
- **Source:** https://github.com/ibelick/motion-primitives/blob/main/components/core/animated-number.tsx
- **Example:** https://skills.varg.ai/previews/lib-motion-primitives-animated-number.mp4?v=15689 (Captured from the library’s own demo page (Motion Primitives))
- **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

Count up a stat (users, stars, revenue) with Motion Primitives' Animated Number (https://motion-primitives.com/docs/animated-number, MIT), large and centered or in a stat card. Install with `npx motion-primitives@latest add animated-number`. The value follows a Motion useSpring, which runs on its own clock, so in Remotion compute the displayed number from frame / fps with interpolate or Remotion's spring() and format it with toLocaleString; in HyperFrames tween a number on the paused timeline and write it into the text. Set value, springOptions (bounce, duration) and a monospace class so the width stays steady.

## Used in

- [Product launch film](https://skills.varg.ai/video/product-launch.md)
- [Feature announcement](https://skills.varg.ai/video/feature-announcement.md)
- [Sale & offer promo](https://skills.varg.ai/video/offer-promo.md)
- [Testimonial & review ad](https://skills.varg.ai/video/testimonial-ad.md)
- [Us vs them & before / after](https://skills.varg.ai/video/comparison-ad.md)
- [Top-N listicle](https://skills.varg.ai/video/listicle.md)
- [Post to video](https://skills.varg.ai/video/post-to-video.md)
- [Quiz, poll & would-you-rather](https://skills.varg.ai/video/quiz.md)

## More stats & kpis

- [Apple Money Count](https://skills.varg.ai/component/hf.apple-money-count.md) — `npx hyperframes add apple-money-count`
- [Count Up](https://skills.varg.ai/component/hf.count-up.md) — `npx hyperframes add count-up`
- [Count-Up Stat Card](https://skills.varg.ai/component/hf.mk-progress-stat.md) — `npx hyperframes add mk-progress-stat`
- [Number Wheel](https://skills.varg.ai/component/hf.number-wheel.md) — `npx hyperframes add number-wheel`
- [Bauhaus Build](https://skills.varg.ai/component/remocn.bauhaus-build.md) — `npx shadcn@latest add @remocn/bauhaus-build`
- [Hand Count](https://skills.varg.ai/component/remocn.hand-count.md) — `npx shadcn@latest add @remocn/hand-count`
