Skip to content

Text Media

Pro

A photo or a looping video plays inside the letters of a heading, and the heading stays real, selectable text.

  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 14, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Text Media needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
28
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Put it inside the heading of a hero. The image shows at once; the video takes over at its first frame.

The sample also uses Button. One command adds them with this item:

film-hero.tsx

TextMedia

<span>
PropTypeDefaultDescription
pausedboolean—The pause of the user or the page (controlled).
defaultPausedboolean—The first pause when paused is not given (uncontrolled). Default false.
onPausedChange—Called when the pause changes.
pauseOnHoverboolean—Hold the motion while a mouse is over the item, or keyboard focus is on the link or button around it (or in it). Default true.
childrenRequiredReactNode—The text. It stays real text: selectable, found by search, read by screen readers.
imagestring—A picture inside the letters. With video, it is the still frame (the poster).
videostring—A video inside the letters: muted, looped, and inline. It plays only on screen.
focalPointMEDIA_TEXT_CENTERThe point of the picture that stays in view when it is cropped, 0 to 1. Default the center.
localestring—The BCP 47 locale of the text, for the letter split and the case of text-transform.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Use image alone for a still photo: it is CSS only, so the server HTML shows it.
  • Add video for motion, and keep image as the still that shows until the first frame and when the video fails.
  • Set focalPoint to keep the important part of the photo inside the letters when the text crops it.
  • Use a heavy weight (font-black) at a display size, so the letters are wide enough to show the picture.
  • For a picture or a section that opens through a shape as the page scrolls, use Mask Reveal.
  • For body text or a small label, plain text reads better; use Typography.
Video
none · the clip plays at its own frame rate; each new frame draws once into the canvas, cut to the letters
Stop and start
none · the video stops at once off screen, in a hidden tab, or on hover, and goes on from the same frame
  1. AddedText Media.
Open the release