# Hover Image Reveal

> A list of large titles where hovering one brings up its image beside the cursor, following on a spring and leaning into the movement.

Category: Text · MotionKit Plus · Updated 2026-11-14 · Live demo: https://www.motionkitui.com/components/hover-image-reveal

## When to use it

Portfolio and case-study lists, agency work pages, menus of services and product collections.

## How it works

The preview's position comes from two motion values that follow the pointer through springs, and its tilt is a transform of the horizontal velocity, so it leans into the direction of travel. All the images are stacked inside the preview and cross-fade by opacity, so switching titles is instant. Keyboard focus places the preview beside the focused title.

## Installation

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

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `items` | `{ title; href?; meta?; image?; color? }[]` | `four samples` | The titles and their previews. |
| `previewWidth` | `number` | `260` | Preview width in pixels. |
| `accent` | `string` | `"#F6F1E8"` | Colour of the hovered title. |

## Accessibility

- **Keyboard: Pass.** Each title is a link (or focusable row); focusing one shows its preview beside it, with a visible focus ring.
- **Screen readers: Pass.** Titles are read as normal links; the floating preview is decorative and hidden.
- **Reduced motion: Pass.** With reduced motion on, the preview moves without springs or tilt.
- **Colour contrast: Partial.** Titles measure 14.7:1, but while one is hovered the others dim to 2.7:1. They're only dimmed for emphasis and return when the pointer leaves.
