---
title: "Text Blur Focus Frame"
description: "A frame of four corners moves from word to word, and every word outside the frame goes soft and blurred."
url: https://gelatinui.com/components/text-blur-focus-frame
markdown_url: https://gelatinui.com/components/text-blur-focus-frame.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-blur-focus-frame"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Blur Focus Frame

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

Page: https://gelatinui.com/components/text-blur-focus-frame

## When to use it

Best for: A short hero line whose key words take turns in a frame, while the other words blur or dim.

- 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.

## When not to use it

- For the same effect with another look, use [Text Dim Focus Frame](https://gelatinui.com/components/text-dim-focus-frame.md).
- For a plain, still highlight on a phrase, use [Mark](https://gelatinui.com/components/mark.md).

## Notes for agents

- Blur Focus Frame is Focus Frame with `effect="blur"` fixed: it takes every other Focus Frame prop and part.
- `children` must be a string. It splits into words with `Intl.Segmenter` in the page language (`locale` to set it), so a screen reader reads the sentence as plain text.
- `mode` is `auto` (default: the frame moves every `interval` seconds, default 2) or `manual` (it goes to the stop word under the pointer, or to `index`).
- `index`, `defaultIndex`, and `onIndexChange` are the place in `stops`, not the place of the word. An `index` out of range wraps.
- The timer waits until the text is first on screen, holds off screen and in a hidden tab, and holds while a mouse is over it or keyboard focus is on a link around it (`pauseOnHover`, default true). `paused`, `defaultPaused`, and `onPausedChange` give the page its own pause; no pause button shows.
- The sentence takes no Tab stop. For a keyboard path in `manual` mode, set `index` from buttons, as the Controlled story does.
- The corners move only with `transform` and keep their size; a resize or a font load moves the frame to its word at once.

## Anatomy

```text
TextBlurFocusFrame
```

## API reference

### TextBlurFocusFrame

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `paused` | `boolean` |  | The pause of the user or the page (controlled). |
| `defaultPaused` | `boolean` |  | The first pause when `paused` is not given (uncontrolled). Default false. |
| `onPausedChange` | `function` |  | Called when the pause changes. |
| `pauseOnHover` | `boolean` |  | 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. |
| `locale` | `string` |  | The BCP 47 locale for the letter and word split (`Intl.Segmenter`). Default: the `DisplayLocaleProvider` locale, else `"en-US"`. |
| `children` | `string` |  | The sentence. Screen readers read it as plain text. |
| `stops` | `readonly 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`. |
| `index` | `number` |  | The place in `stops` of the framed word (controlled). |
| `defaultIndex` | `number` |  | The place in `stops` of the first framed word (uncontrolled). Default 0. |
| `onIndexChange` | `function` |  | Called when the frame moves to another stop. |
| `interval` | `number` |  | Seconds on each word in `auto` mode. Default 2. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextBlurFocusFrame | `text-blur-focus-frame` |  |  |  |

## Usage

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`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui-pro/text-blur-focus-frame @gelatin-ui/button
```

```tsx title="hero-section.tsx"
import { TextBlurFocusFrame } from "@/components/pro/text/text-blur-focus-frame";
import { Button } from "@/components/ui/button";

export function HeroSection() {
  return (
    <section className="mx-auto flex max-w-3xl flex-col items-center gap-4 py-16 text-center">
      <p className="text-sm font-medium text-muted-foreground">For product teams</p>
      <h1 className="text-6xl font-bold tracking-tight">
        <TextBlurFocusFrame stops={[0, 2, 4]} interval={2.5}>
          Faster reviews, safer releases, happier teams
        </TextBlurFocusFrame>
      </h1>
      <p className="max-w-md text-muted-foreground">
        One place to plan, review, and ship the work, with checks on every step.
      </p>
      <Button size="lg">Start free trial</Button>
    </section>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/text-blur-focus-frame
```

It adds 33 registry items: 32 files, 5279 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `@xstate/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`, `xstate`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Text Dim Focus Frame](https://gelatinui.com/components/text-dim-focus-frame.md)
- [Mark](https://gelatinui.com/components/mark.md)

## Motion

| Part | Motion |
| --- | --- |
| 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 |
