Measured entry

motion-primitives-animated-number

text-effectdark-futuristicmotion on file

A client-side React component that springs between numeric values and renders the rounded result with locale-aware separators. It ships as a TSX registry file and depends on Motion plus a shadcn-style cn utility backed by clsx and tailwind-merge; no provider is required.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of motion-primitives-animated-number at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of motion-primitives-animated-number at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of motion-primitives-animated-number at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for motion-primitives-animated-number
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal70.4 KB (135.9 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A focused, dependable counter primitive that built and mounted cleanly, stayed contained across the tested layouts, and raised no automated accessibility findings. Use it when Motion is already justified; for a lone counter, the dependency cost is harder to defend.

Use it if

  • You need changing dashboard totals, counters, or KPI values to animate in place.
  • Your interface already uses Motion and can absorb another motion-based primitive.
  • You want a small API with element selection, styling, and spring customization.

Skip it if

  • You only need a static formatted number and do not want Motion in the client bundle.
  • You need decimals, currencies, units, or custom rounding without modifying the transform.
  • Value changes must be deliberately announced to assistive technology, since the component adds no live-region behavior.
  • Your project cannot run client components or provide an equivalent cn helper and tabular numeral styling.

Install

Installation record for motion-primitives-animated-number
Declared dependenciesmotion, clsx, tailwind-merge
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn project, install Motion, clsx, and tailwind-merge; add a cn class-merging helper or replace that call; configure the import alias or use a relative path; and provide tabular numeral styling if Tailwind is absent. The host must support React client components.

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.

Alternatives

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.