Skip to content

Text Dim Focus Frame

Pro

A frame of four corners moves from word to word, and every word outside the frame goes dim.

  • React 19
  • Tailwind CSS 4

Added Nov 15, 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 Dim Focus Frame 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
31
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 a heading with the places of the key words in stops. The frame moves on a timer.

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

hero-section.tsx

TextDimFocusFrame

<div>
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.
localestring—The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US".
childrenRequiredstring—The sentence. Screen readers read it as plain text.
stopsreadonly number[]—The words the frame visits, by place among the words (0 is the first word). Default: every word.
mode"auto""manual"—auto (default): the frame moves on a timer. manual: it goes to the stop word under the pointer, or to index.
indexnumber—The place in stops of the framed word (controlled).
defaultIndexnumber—The place in stops of the first framed word (uncontrolled). Default 0.
onIndexChange—Called when the frame moves to another stop.
intervalnumber—Seconds on each word in auto mode. Default 2.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Give stops the places of the key words (0 is the first word); with no stops, the frame visits every word.
  • Use mode="manual" to frame the stop word under the pointer, or set index from your own controls.
  • Set paused from the page to hold the frame; a mouse over the text holds it too.
Move
panel · 260ms · ease-panel (0.2, 0.4, 0.2, 1) · the four corners slide to the next word with `transform`; a move mid-move turns from its current speed
Blur
panel · 260ms · ease-panel (0.2, 0.4, 0.2, 1) · the word that leaves the frame blurs and dims as the new word turns sharp
Resize
instant · a resize or a font load moves the frame to its word in the same frame
  1. AddedText Dim Focus Frame.
Open the release