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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of magicui-video-text at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-video-text at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-video-text 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 magicui-video-text
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal26.9 KB (92.3 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for magicui-video-text
Declared dependenciesnone declared
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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.

License
MIT
Record published
2026-08-14

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.