# Video Text — primitive for headlines & quotes (react)

> **For AI agents:** find the right skill in one call — `curl -s "https://skills.varg.ai/api/search?q=<what the person wants>"` returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add `.md` to its path. Before generating anything, show the person the options on the use-case page.

Huge block letters cut out of a playing video, so the footage only shows through the type

- **Install:** `npx shadcn@latest add @magicui/video-text`
- **Registry:** magic-ui · **Framework:** react · **License:** MIT
- **Docs and preview:** https://magicui.design/docs/components/video-text
- **Source:** https://github.com/magicuidesign/magicui/blob/main/apps/www/registry/magicui/video-text.tsx
- **Example:** https://skills.varg.ai/previews/lib-magic-ui-video-text.mp4?v=42340 (Captured from the library’s own demo page (Magic UI))
- **Time:** Drive from the frame. Runs on its own clock (requestAnimationFrame, timers, springs or CSS). Drive it from frame / fps before rendering, or the render drifts.
- **Runs:** local render, free
- **Aspect:** any

## Prompt that renders it frame-exact

Use Video Text from Magic UI (https://magicui.design/docs/components/video-text, MIT) for a title made of footage: one word filling the frame, the clip visible only inside the letters. It masks an autoplaying, looping <video> with an SVG text mask. In a render the video has to follow the composition clock: in HyperFrames use a framework-owned video element (class="clip" with data-start) under the same mask, in Remotion swap the <video> for <OffthreadVideo> or <Video>. Set src to your own clip, the word, fontSize, fontWeight and fontFamily; short, heavy words work best.

## Used in

- [Product launch film](https://skills.varg.ai/video/product-launch.md)
- [Feature announcement](https://skills.varg.ai/video/feature-announcement.md)
- [App promo & App Store preview](https://skills.varg.ai/video/app-promo.md)
- [UGC ad with overlays](https://skills.varg.ai/video/ugc-overlay-ad.md)
- [Ad variants for testing](https://skills.varg.ai/video/ad-variants.md)
- [Testimonial & review ad](https://skills.varg.ai/video/testimonial-ad.md)
- [Us vs them & before / after](https://skills.varg.ai/video/comparison-ad.md)
- [Notes-app ad](https://skills.varg.ai/video/notes-ad.md)

## More headlines & quotes

- [Headline Slam](https://skills.varg.ai/component/hf.headline-slam.md) — `npx hyperframes add headline-slam`
