---
title: "Text Lift Proximity"
description: "The letters near the pointer lift up, and settle back down when the pointer moves away."
url: https://gelatinui.com/components/text-lift-proximity
markdown_url: https://gelatinui.com/components/text-lift-proximity.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-lift-proximity"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Lift Proximity

> The letters near the pointer lift up, and settle back down when the pointer moves away.

Page: https://gelatinui.com/components/text-lift-proximity

## When to use it

Best for: A few words of a hero heading or a call to action that react to the pointer, once a screen.

- Wrap only the words that should move, inside a heading or a button: the words around them stay still.
- Use `falloff="index"` with `spread` for a dock: the letter under the pointer and `spread` letters on each side react, with the same step for a narrow and a wide letter.
- Set `ripple` for a ring of lift on a press, and `idle` for a slow wave while the pointer is away.

## When not to use it

- For the same effect with another look, use [Text Grow Proximity](https://gelatinui.com/components/text-grow-proximity.md).
- For letters that get heavier under the pointer, with a variable font, use [Text Variable Proximity](https://gelatinui.com/components/text-variable-proximity.md).
- For a whole button or card that moves toward the pointer, use [Magnetic](https://gelatinui.com/components/magnetic.md).
- For icons in a bar that grow under the pointer, use [Magnifying Dock](https://gelatinui.com/components/magnifying-dock.md).
- For body text, a long paragraph, or text a person must read in the moment, use plain text.

## Notes for agents

- Lift Proximity is Pointer Proximity with `effect="lift"` fixed: it takes every other Pointer Proximity prop and part.
- `children` must be a string. The root names the text in one piece (`aria-label`), so a heading or a button reads the words, not letter by letter. An `aria-label` prop wins.
- Only `transform` moves: a near letter lifts 0.3em and grows 25% from its bottom edge, so the text, the lines, and the page around it never move. The lift is in `em`, so it follows the text size.
- `radius` (px, default 100) is the reach from the center of each letter. With `falloff="distance"` (default) a letter gets 1 at its center and 0 at `radius`, squared.
- One passive `pointermove` listener on the window: a letter reacts before the pointer is on the text. Each letter follows on a spring and writes one custom property; React does not render while the pointer moves.
- A finger moves the letters too, and the page still scrolls: the listeners are passive and set no `touch-action`. The letters rest when the finger lifts.
- `idle` runs only while the pointer is away and the text is on screen. `paused` (or `defaultPaused` with `onPausedChange`) stops the wave; the pointer still moves the letters. There is no hover hold: the pointer is the effect.
- Keyboard focus on the link or button around the text sends one sweep across the letters. A click that focuses it sends none (`:focus-visible` only).
- Arabic and other joining scripts move by word, so the letters stay joined. A text over the letter limit moves by word too. `locale` sets the split; the default comes from `DisplayLocaleProvider`.
- A new text or locale mounts the letters again. An empty text renders an empty root.

## Anatomy

```text
TextLiftProximity
```

## API reference

### TextLiftProximity

| 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. |
| `locale` | `string` |  | The BCP 47 locale for the letter and word split (`Intl.Segmenter`). Default: the `DisplayLocaleProvider` locale, else `"en-US"`. |
| `children` | `string` |  | The text. Its letters near the pointer lift and grow. |
| `radius` | `number` |  | How far the pointer reaches, in px from the center of a letter. Default 100. |
| `falloff` | `"distance" \| "index"` |  | How the effect falls off: by the `distance` of each letter (default), or by its `index` from the letter under the pointer, as icons in a dock (`#/lib/pro/pointer-falloff-model`). |
| `spread` | `number` |  | `falloff="index"` only: how many letters on each side react. Default 2. |
| `ripple` | `boolean` |  | A press on the text sends a ring of lift out from the press point. Default off. |
| `idle` | `boolean` |  | A slow bump crosses the text while the pointer is away (2.4s a pass, then 1.2s of rest), only on screen. `paused` stops it. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextLiftProximity | `text-lift-proximity` |  |  |  |

## Usage

Wrap the words that should react, inside a heading or a button.

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-lift-proximity @gelatin-ui/button
```

```tsx title="hero.tsx"
import { ArrowRightIcon } from "@phosphor-icons/react/ssr";

import { TextLiftProximity } from "@/components/pro/text/text-lift-proximity";
import { Button } from "@/components/ui/button";

export function Hero() {
  return (
    <section className="flex flex-col items-center gap-6 py-24 text-center">
      <h1 className="text-6xl leading-tight font-semibold tracking-tight">
        Interfaces that{" "}
        <TextLiftProximity className="text-primary" ripple idle>
          come alive
        </TextLiftProximity>
      </h1>
      <p className="max-w-md text-lg text-muted-foreground">
        Components that respond to every move you make, frame by frame.
      </p>
      <Button size="lg" nativeButton={false} render={<a href="/docs" />}>
        <TextLiftProximity falloff="index" spread={2}>
          Start building
        </TextLiftProximity>
        <ArrowRightIcon data-icon="inline-end" />
      </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-lift-proximity
```

It adds 28 registry items: 27 files, 4442 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`.

## 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 Grow Proximity](https://gelatinui.com/components/text-grow-proximity.md)
- [Text Pull Proximity](https://gelatinui.com/components/text-pull-proximity.md)
- [Text Variable Proximity](https://gelatinui.com/components/text-variable-proximity.md)
- [Magnetic](https://gelatinui.com/components/magnetic.md)
- [Magnifying Dock](https://gelatinui.com/components/magnifying-dock.md)
- [Button](https://gelatinui.com/components/button.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | Moves the focus to the link or button around the text. One sweep crosses the letters from the start edge. |

## Motion

| Part | Motion |
| --- | --- |
| Follow | follow · spring (visual duration 0.23s, bounce 0.28) · each letter lifts and grows toward its nearness, and settles back when the pointer leaves |
| Pull | follow · with `effect="pull"`, each letter moves toward the pointer, at most about 0.3em, and springs home when the pointer leaves |
| Ripple | progress · a ring runs out from the press point at 0.8px per ms, and fades as it grows |
| Idle wave | progress · a bump half the height of the pointer crosses the text in 2.4s, then rests 1.2s, only while the pointer is away |
| Focus sweep | progress · one bump crosses the text in 1.2s at full height on keyboard focus |
