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.
Clock digits slide vertically into place as each second ticks over
- Install:
npx motion-primitives@latest add sliding-number - Registry: motion-primitives · Framework: react · License: MIT
- Docs and preview: https://motion-primitives.com/docs/sliding-number
- Source: https://github.com/ibelick/motion-primitives/blob/main/components/core/sliding-number.tsx
- Example: https://skills.varg.ai/previews/lib-motion-primitives-sliding-number.mp4?v=12249 (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
Use Motion Primitives' Sliding Number (https://motion-primitives.com/docs/sliding-number, MIT) for a countdown, timer or odometer-style figure, set big in the frame. Install with npx motion-primitives@latest add sliding-number. Each digit is a column of 0 to 9 that a Motion spring scrolls to the target, so in Remotion compute the value from frame / fps and set each column's translateY from an interpolated or spring() progress for that frame; in HyperFrames tween the columns on the paused timeline. Set value, padStart and decimalSeparator, and use tabular or monospace digits.
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