Measured entry
motion-primitives-sliding-number
text-effectdark-futuristicmotion on file
A client-side React number display that rolls each digit with spring motion as the value changes. It ships as a single TSX registry component, uses Tailwind utility classes for layout, and depends on Motion plus react-use-measure to animate and size each digit.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 63.3 KB (128.8 KB build, 65.5 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
A focused, dependable rolling counter that builds and mounts cleanly without a provider or shadcn-specific foundation. It is a good fit for concise numeric readouts, but localization, reduced-motion behavior, and announcement semantics remain the integrating team's responsibility.
Use it if
- You need changing dashboard totals, counters, or scores to transition digit by digit.
- Your React interface already uses Tailwind and can accept Motion and react-use-measure.
- You want support for negative values, decimal values, optional leading padding, or a custom decimal separator.
Skip it if
- You only show static values and do not want animation dependencies for a small visual flourish.
- You need locale-aware grouping, currency formatting, or richer numeric formatting built into the component.
- You require built-in reduced-motion handling or explicit live-region semantics for changing values.
Install
| Declared dependencies | motion, react-use-measure |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no provider required in the harness |
In a non-shadcn project, copy the client TSX component, install Motion and react-use-measure, and ensure Tailwind processes the utility classes used by the file. No registry components, theme variables, or context provider are required.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/ibelick/motion-primitivesAlternatives
Other published entries for the text-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- uilayouts-randomized-text-effectdark-futuristic
- Renders
- YES
- A11y
- 0
- Gzip
- 17.5KB
- Bare
- pass
- Prov
- NO
- uilayouts-randomized-text-unveildark-futuristic
- Renders
- YES
- A11y
- 0
- Gzip
- 17.7KB
- Bare
- pass
- Prov
- NO
- fancy-scramble-indark-futuristic
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- magicui-aurora-textaurora-mesh
- Renders
- YES
- A11y
- 0
- Gzip
- 20.7KB
- Bare
- pass
- Prov
- NO
- magicui-highlighterskeuomorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 24.8KB
- Bare
- pass
- Prov
- NO
- fancy-text-along-pathspatial
- Renders
- YES
- A11y
- 0
- Gzip
- 25.7KB
- Bare
- pass
- Prov
- NO