Count-up Number
A number that counts quickly from zero to its value to highlight a statistic.
requestAnimationFrame / @property counterWhen to use it
For achievement numbers on a showcase page.
Common mistake
Not for numbers people need to read immediately.
Accessibility
Render the final number in the HTML; animate only the display.
Name in code
| HTML/CSS | requestAnimationFrame / @property counter |
|---|---|
| React | react-countup |
| Jetpack Compose | animateIntAsState |
| SwiftUI | .contentTransition(.numericText()) |
Ready prompt for your coding agent
Add a Count-up Number to this screen.
What it is: A number that counts quickly from zero to its value to highlight a statistic.
Implement with: requestAnimationFrame / @property counter (HTML/CSS).
Accessibility: Render the final number in the HTML; animate only the display.
When to use it: For achievement numbers on a showcase page.
Avoid: Not for numbers people need to read immediately.
Reuse the project's existing design tokens, spacing and component conventions.
Or compose a whole page from this element and others →
Prompts are in English for the most precise results with coding agents.