Skip to content
IndexRequest a UIAboutContact

Hover Reveal Card

An image card whose caption and action slide up from the bottom on hover or focus.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Create a 4:3 image card, 280px wide, with a neutral gradient placeholder as the image and rounded 14px corners with overflow hidden. At rest only the image is visible. Add a bottom panel containing a 14px semibold title ("Studio Light"), a 12px description and a small "View" button. The panel is translated 100% down at rest. On hover and on :focus-within slide it to translateY(0) over 300ms cubic-bezier(.2,.7,.2,1) and scale the image to 1.04 over 500ms ease-out. The panel uses a white background and a 1px top border. Under @media (hover:none) keep the panel visible and no zoom. Keep the button reachable by keyboard; Tab focus must reveal the panel. Under prefers-reduced-motion replace the slide with a 120ms fade and remove the zoom.

About this pattern

Definition

A card that shows only its image at rest. When hovered or focused, a panel with title, description and a button slides up over the lower part of the image.

Purpose & UX principles

  • Keeps galleries clean while still offering detail on demand.
  • The reveal also triggers on keyboard focus and is always visible on touch devices, so the information is never hidden from people who cannot hover.
  • The caption panel has a solid background so text stays readable on any image.

Interaction states

  • Rest (image only), hover and focus-within (panel visible, image zooms 4%), pressed, focus-visible on the inner button.

Motion specification

  • Panel slide: translateY(100%) to 0, 300ms cubic-bezier(.2,.7,.2,1).
  • Image zoom: scale 1 to 1.04, 500ms ease-out.
  • Reduced motion: panel appears with a 120ms fade and the image does not zoom.

Responsive behaviour

  • The card keeps a 4:3 ratio and fills its cell.
  • Without hover support the panel is permanently shown in a compact form.

Code

HTML
<article class="rc">
  <div class="img"></div>
  <div class="panel">
    <h3>Studio Light</h3>
    <p>Soft shadows and quiet colour.</p>
    <button class="go" type="button">View</button>
  </div>
</article>

Related patterns

Flip Card

↗
Flip CardCards & Containers

Interactive Card

↗
Interactive CardCards & Containers

Tilt Card

↗
Tilt CardCards & Containers