Hover Image List

A portfolio-style index list where hovering or focusing a row reveals its image near the cursor.

Open in v0

Last updated: August 13, 2026

Installation

npx smoothui-cli add hover-image-list

Features

  • Real <a>/<button> rows inside a semantic <ul> — fully navigable and clickable
  • Preview image crossfades with a slight scale as the active row changes
  • Optional spring-based cursor following, with a subtle skew derived from pointer velocity
  • Keyboard focus reveals the same preview, pinned to a fixed position instead of following the pointer
  • Decorative preview layer is aria-hidden and never intercepts pointer or focus events

Accessibility

ARIA Attributes

AttributeElementPurpose
aria-hidden="true"Image preview layerHides the decorative preview from assistive technologies

Screen Reader

  • Rows are real <a> or <button> elements, so they are announced and operable like any other link or button.
  • The image preview is purely decorative and aria-hidden; it never becomes the accessible content for a row.

Reduced Motion

This component respects prefers-reduced-motion via useReducedMotion from Motion. When reduced motion is preferred, the preview appears with a plain opacity change only — no cursor following, no skew, and no scale animation.

Props

Created by

Powered by

motion.dev
lucide.dev

© 2026 SmoothUI. Built by Eduardo Calvo.