# Number Ticker — primitive for stats & kpis (react)

> **For AI agents:** find the right skill in one call — `curl -s "https://varg.ai/how-to/api/search?q=<what the person wants>"` returns the matching how-to page and the best skills with install commands, as markdown (Russian works too). Full index: https://varg.ai/how-to/llms.txt. Every page has a markdown twin: add `.md` to its path. Before generating anything, show the person the options on the how-to page.

A large number counts up from zero and eases to a stop on its target value

- **Install:** `npx shadcn@latest add @magicui/number-ticker`
- **Registry:** magic-ui · **Framework:** react · **License:** MIT
- **Docs and preview:** https://magicui.design/docs/components/number-ticker
- **Source:** https://github.com/magicuidesign/magicui/blob/main/apps/www/registry/magicui/number-ticker.tsx
- **Example:** https://s3.varg.ai/how-to/previews/b13a9201afca/lib-magic-ui-number-ticker.mp4 (Captured from the library’s own demo page (Magic 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

Use Number Ticker from Magic UI (https://magicui.design/docs/components/number-ticker, MIT) for a stat beat: one big number in the middle of the frame with a label under it. It springs from startValue to value with motion's useSpring once it scrolls into view, so it starts on wall time. For a render, compute the value from the frame: in Remotion v = startValue + (value - startValue) * spring({ frame: frame - delayFrames, fps, config: { damping: 60, stiffness: 100 } }); in HyperFrames tween a plain object on the paused timeline and write the formatted number in onUpdate. Format with Intl.NumberFormat, set value, startValue, decimalPlaces and direction, and use tabular-nums so the width does not jitter.

## Used in

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

## More stats & kpis

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