Measured entry
motion-primitives-text-effect
text-effectdark-futuristicmotion on file
A client-side React text animation component that splits a string by character, word, or line and applies configurable Motion variants. It ships as copied TSX from a shadcn registry and depends on Motion plus a project-local cn utility backed by clsx and tailwind-merge.



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 | 72.0 KB (137.5 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
src/cut/demo.jsx (2:10): "default" is not exported by "src/cut/index.jsx", imported by "src/cut/demo.jsx".
Verdict
A flexible, focused text reveal primitive with clean preset and customization options. It needs a shadcn-style setup, and the bare demo also assumes a default export that the source does not provide, so expect a small integration fix outside that environment.
Use it if
- You need reveal and exit animation for short headings, labels, or campaign copy.
- Your React app already uses Motion and can host a client component.
- You want presets with an escape hatch for custom variants and transitions.
Skip it if
- Your text content contains links, emphasis, or other React nodes rather than a plain string.
- Your performance budget cannot justify adding Motion for a small text flourish.
- You require reduced-motion behavior to be built into the component rather than added by your team.
Install
| Declared dependencies | motion, clsx, tailwind-merge |
|---|---|
| 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 |
For a non-shadcn project, install Motion, clsx, and tailwind-merge; add a compatible cn utility; configure the project alias or replace that import; preserve client-component support; and import TextEffect by its named export.
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