Measured entry
motion-primitives-spinning-text
text-effect3dmotion on file
A client-side React component that arranges a string around a circular path and continuously rotates it. It ships as a shadcn registry TSX file, depends on Motion through motion/react, and expects Tailwind utilities plus a cn helper at the usual @/lib/utils alias.



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 | 66.6 KB (132.0 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 29.09s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/spinning-text.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused, customizable accent with clean screen-reader fallback and reliable responsive mounting in the prepared harness. It needs a shadcn-style setup because the bare project cannot resolve its shared cn utility. Best adopted where Motion is already present.
Use it if
- You need a compact orbiting label around an icon, badge, or callout.
- Your React app already uses Motion and can supply the component with an explicitly sized container.
- You want control over direction, duration, radius, and animation variants from props.
Skip it if
- The text is primary reading content rather than a decorative accent.
- Your product requires reduced-motion behavior without adding your own preference handling.
- You do not want to bring Motion into the client bundle for a single text effect.
- Your styling stack does not provide Tailwind utilities or an equivalent screen-reader-only class.
Install
| Declared dependencies | motion |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, install Motion, configure the @ alias, add a cn class-merging helper at src/lib/utils, and provide equivalents for the relative positioning, absolute centering, inline-block, and screen-reader-only Tailwind classes. Use it from a client-rendered React boundary.
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