Number flow: digits that roll between values
Formatted numbers (currency, percentages, units) animate between values with each digit rolling vertically while separators and signs slide into place.
By Max Barvian (@mbarvian) · View original post
Originally built with React. Members can get the prompt for React, SwiftUI, React Native or HTML/CSS. More text animations in React →
Prompt
Build an animated number component in React + TypeScript (no animation library) on a black stage.…
Free forever. Available for React, SwiftUI, React Native and HTML/CSS.
Build it with
Motion details
- Timing
- 0.9s
- Spring
- spring-based
- Easing
- cubic-bezier(.2, 1.2, .3, 1), linear
- Details
- Reduced-motion fallback
Keyframes
Six frames from the clip, left to right. Agents get this sheet as a reference with the prompt.

Questions
- How do I build the number flow: digits that roll between values in React?
- Copy the Kites Motion prompt for this clip (free account) and paste it into Claude Code, Cursor or Codex, or send it there in one click. The prompt describes the layout, timing and interactions, and links a keyframe sheet so your agent can match the motion. It is written for React and can be rewritten for SwiftUI, React Native, HTML/CSS.
- What are the motion details?
- Timing: 0.9s. Spring: spring-based. Easing: cubic-bezier(.2, 1.2, .3, 1), linear. Details: Reduced-motion fallback.
- Who designed this animation?
- Max Barvian (@mbarvian) shared it on X. Kites Motion links back to the original post.
Similar animations
More text animations →
Numbers that flow between valuesText effect
Editorial text that reflows around moving orbsText effect
Dotted 3D globe with live labels and flight arcs3D
Agent status island with pixel iconsLoader
Split bill that rebalances as people joinMicrointeraction
OTP input where digits roll into placeInput
Speaking-practice app with a score dialChart
Daily habits card with a filling streakMicrointeraction