# Window Text

> Big letters cut like windows onto a landscape whose layers drift at different speeds with the pointer and the scroll, so the view has real depth.

Category: Text · MotionKit Plus · Updated 2026-11-10 · Live demo: https://www.motionkitui.com/components/window-text

## When to use it

Travel, outdoor and hospitality heroes, portfolio and agency headlines, and landing pages where one word should carry a mood.

## How it works

The text is filled with a stack of background layers clipped to the letters with background-clip: text: a sky gradient, a sun or moon, and hills or sea drawn as small inline SVGs. Pointer position and scroll progress feed springs, and one motion value turns them into a background position for every layer, scaled by that layer's depth. The far sky barely moves while the nearest hills move most, which is what makes it read as a view through a window rather than a pattern. Because it's still real text, it selects, translates and reads normally.

## Installation

Part of MotionKit Plus (https://www.motionkitui.com/pricing). Subscribers install it with `npx shadcn@latest add @motionkit/window-text` after adding their registry token from https://www.motionkitui.com/account.

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` |  | The text. |
| `scene` | `"dusk" \| "sea" \| "meadow"` | `"dusk"` | The view through the letters. |
| `src` | `string` |  | Your own image to look through instead of a scene. |
| `depth` | `number` | `36` | How far the scene shifts with the pointer and scroll, in px. 0 holds it still. |
| `as` | `ElementType` | `"span"` | Element to render, e.g. h1. |

## Accessibility

- **Keyboard: Not applicable.** Text, not a control; the parallax follows the pointer and the scroll.
- **Screen readers: Pass.** It's your real text with the scene painted inside it, so it reads, selects and translates normally.
- **Reduced motion: Pass.** With reduced motion on, the scene holds still.
- **Colour contrast: Pass.** Every part of each scene measures 3.5:1 or more on the site's dark, above the 3:1 large text needs, and skies reach 15:1. It's made for display sizes, not body copy; check your own image if you pass src.
