Skip to content
IndexRequest a UIAboutContact

Interactive Card

A clickable card that lifts slightly on hover and slides its arrow forward.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Build a media card, 300px wide, with a 16:9 image placeholder area, a 15px semibold title, a 13px secondary description of two lines and a small "Read more" label with an arrow. The whole card is one link: make the title an anchor and stretch it over the card with an ::after pseudo-element positioned absolutely at inset 0. On hover and keyboard focus, translateY(-3px), darken the 1px border and move the arrow 4px to the right, all in 180ms with cubic-bezier(.2,.7,.2,1). While pressed remove the lift. Show a visible 2px focus ring around the whole card using :focus-within. On devices without hover keep the arrow visible and skip the lift. Under prefers-reduced-motion remove the transform animations and only change the border colour. Prevent navigation in the demo and print "Opened: Field notes" into an aria-live status line under the card.

About this pattern

Definition

A surface that groups an image, a title and a short description, and acts as one large link. Hover and focus raise it a few pixels and move a small arrow, so the whole area reads as clickable.

Purpose & UX principles

  • One card, one destination: the entire surface is the hit area, not only the title.
  • The title is the real link; a pseudo-element stretches it over the card so keyboard and screen-reader users hear one clear link.
  • Subtle motion confirms interactivity without competing with the content.

Interaction states

  • Default, hover (lift 3px, border darkens, arrow moves 4px), focus-visible (2px ring around the card), pressed (lift removed).
  • Visited or opened state can be shown with a small label; here a status line confirms the click.

Motion specification

  • Lift and border: 180ms cubic-bezier(.2,.7,.2,1).
  • Arrow: translateX 4px over 180ms.
  • Reduced motion: no lift or arrow movement; only the border colour changes.

Responsive behaviour

  • Cards fill their grid cell; the image keeps a fixed aspect ratio (16:9).
  • On touch devices there is no hover, so the arrow is always visible and the pressed state replaces the lift.

Code

HTML
<div class="wrap">
  <article class="card">
    <div class="img"></div>
    <div class="body">
      <h3><a href="#" id="lnk">Field notes</a></h3>
      <p>Short observations about interface details, collected from everyday apps.</p>
      <span class="more">Read more <i>→</i></span>
    </div>
  </article>
  <p class="status" id="st" aria-live="polite">Hover, focus or click the card.</p>
</div>

Related patterns

Hover Reveal Card

↗
Hover Reveal CardCards & Containers

Tilt Card

↗
Tilt CardCards & Containers

Selectable Card

↗
Selectable CardCards & Containers