---
title: "Text Lenticular"
description: "Two texts woven into one, like a lenticular print. A tilt, the pointer, or the scroll picks which one shows."
url: https://gelatinui.com/components/text-lenticular
markdown_url: https://gelatinui.com/components/text-lenticular.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-lenticular"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Lenticular

> Two texts woven into one, like a lenticular print. A tilt, the pointer, or the scroll picks which one shows.

Page: https://gelatinui.com/components/text-lenticular

## When to use it

Best for: A heading with two texts in one, where the pointer or the scroll picks which shows.

- Use `trigger="scroll"` to turn the faces with the page scroll.
- Use `face` to control which face shows.

## When not to use it

- For text that turns like a split-flap board, use [Text Split Flap](https://gelatinui.com/components/text-split-flap.md).

## Notes for agents

- Put the two texts in the Front and Back parts.
- `onFaceChange` runs when the face changes.

## Anatomy

```text
TextLenticular
├─ TextLenticularFront (0..n)
└─ TextLenticularBack (0..n)
```

## API reference

### TextLenticular

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `ridge` | `string \| number` | "max(3px,0.12em)" | The width of one lens ridge: px as a number, or a CSS length (`"max(3px,0.12em)"` follows the text size). Default 4: it reads as plastic and still shows the strips. |
| `softness` | `number` |  | The soft edge of a strip, 0 (hard, default) to 1 (a blend across the whole ridge). |
| `scrollBand` | `Readonly` |  | The scroll band of the `scroll` trigger. Default 35% to 65% of the pass. |
| `trigger` | `"hover" \| "scroll"` | "hover" | What turns it: `hover` (default) a mouse across the text, a finger drag, or a key; `scroll` the page scroll, as the text passes the middle of the view. |
| `face` | `"back" \| "front"` |  | The face that shows (controlled): `front` or `back`. A change glides the strips to it. |
| `defaultFace` | `"back" \| "front"` | "front" | The face at the start (uncontrolled). Default `front`. |
| `onFaceChange` | `function` |  | Called once when a mouse leave, a drag release, or a key settles it on the other face. |

### TextLenticularFront

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TextLenticularBack

No props of its own: `className`, `children`, and every other prop go to the element it renders.

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextLenticular | `text-lenticular` |  |  |  |
| TextLenticularFront | `text-lenticular-front` |  |  |  |
| TextLenticularBack | `text-lenticular-back` |  |  |  |

## Usage

Put the two texts in the Front and Back parts.

```tsx title="two-faces.tsx"
import { TextLenticular, TextLenticularBack, TextLenticularFront } from "@/components/pro/text/text-lenticular";

export function TwoFaces() {
  return (
    <section className="flex flex-col items-center gap-4 py-16 text-center">
      <h1 className="text-6xl font-semibold tracking-tight">
        <TextLenticular trigger="hover">
          <TextLenticularFront>Ship on Friday</TextLenticularFront>
          <TextLenticularBack>Sleep on Friday</TextLenticularBack>
        </TextLenticular>
      </h1>
      <p className="text-muted-foreground">Move the pointer over the heading.</p>
    </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-lenticular
```

It adds 37 registry items: 36 files, 5551 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `@xstate/react`, `clsx`, `motion`, `tailwind-merge`, `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 Split Flap](https://gelatinui.com/components/text-split-flap.md)
- [Text Perspective](https://gelatinui.com/components/text-perspective.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ArrowLeft / ArrowRight | Turns to one face or the other (they follow the text direction). |
| ArrowUp / End | Turns to the back face. |
| ArrowDown / Home | Turns to the front face. |
| Enter / Space | Turns to the other face. |

## Motion

| Part | Motion |
| --- | --- |
| Turn | follow · the faces turn with the pointer, the drag, or the scroll, and settle on one face |
