Measured entry
magicui-video-text
text-effect3dmotion on file
A client-side React text effect that masks a playing HTML video through an SVG text shape, with a screen-reader-only text fallback. It ships as a shadcn registry TSX file and relies on React, Tailwind utility classes, the cn helper at the usual alias, browser mask support, and a supplied video source.



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 | 26.9 KB (92.3 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 30.36s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/video-text.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused hero treatment that builds, mounts, and stays within its tested viewports, but it needs a shadcn-style setup because the bare package cannot resolve its utility import. Use it sparingly and provide a deliberate fallback if the heading must always be visible.
Use it if
- You need a short hero word or display heading filled by looping video.
- Your React app already has Tailwind and the standard shadcn utility alias.
- You can supply an optimized video asset and a fixed container for the effect.
Skip it if
- The text must remain visible when video playback or CSS masking is unavailable.
- You need rich React children rather than plain text content.
- Your page cannot justify loading video for a decorative heading.
- You need a server-only component with no client-side effect.
Install
| Declared dependencies | none declared |
|---|---|
| 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, add Tailwind or replace the utility classes with equivalent CSS, create a cn class-merging helper, configure the utility import alias or change it to a relative path, keep the file client-rendered, and provide a compatible video asset.
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/magicuidesign/magicuiAlternatives
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