Hover Image List
A portfolio-style index list where hovering or focusing a row reveals its image near the cursor.
Installation
npx smoothui-cli add hover-image-listFeatures
- 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-hiddenand never intercepts pointer or focus events
Accessibility
ARIA Attributes
| Attribute | Element | Purpose |
|---|---|---|
aria-hidden="true" | Image preview layer | Hides 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
© 2026 SmoothUI. Built by Eduardo Calvo.