Hover Lift Card

Card that lifts with a deepening shadow on hover.

A

Hover lift card

Subtle lift plus shadow sells interactivity without layout shift.

Tailwind CSS
<div class="max-w-sm rounded-2xl border border-slate-200 bg-white p-6 shadow-sm hover:shadow-xl hover:-translate-y-1 transition-all duration-300">
  <div class="w-10 h-10 rounded-xl bg-indigo-100 text-indigo-600 flex items-center justify-center font-bold">A</div>
  <h3 class="mt-4 text-lg font-bold text-slate-900">Hover lift card</h3>
  <p class="mt-2 text-sm text-slate-500">Subtle lift plus shadow sells interactivity without layout shift.</p>
</div>

Free to use in personal and commercial projects. No attribution required.

Variants

Same component, different looks. Preview each one live and copy the code you like.

With image

Image header version for blog cards and portfolio grids.

Hover lift card

Image header plus lift sells interactivity without layout shift.

Tailwind CSS

Dark

Dark surface version for night mode feature grids.

A

Hover lift card

Subtle lift plus shadow sells interactivity without layout shift.

Tailwind CSS

Horizontal

Compact horizontal layout for list rows and sidebar widgets.

A

Hover lift card

Compact row layout for lists and sidebars.

Tailwind CSS

About this hover lift card

The hover lift is the most honest micro-interaction: the card rises slightly and its shadow deepens, saying 'you can click me'. It is the card pattern on portfolios, directories, and marketplaces where cards link somewhere.

This lift card combines -translate-y-1 with shadow-xl on hover, transitioning over 300ms. The 1px lift is subtle; the shadow does the heavy lifting (literally). The icon block gives the card a visual anchor.

Lift implies clickability. Do not put hover lift on non-interactive cards or users will click expecting navigation. If the card is not a link, skip the lift.

In a grid of identical cards, nothing tells the user what is clickable. Underlines do not work on cards, and click here text is clutter nobody reads. The hover lift solves discovery with physics: things that rise toward your cursor feel graspable, the same instinct that makes a hand reach for a raised button on a physical panel. It is affordance without a single extra word, which is why portfolios and marketplaces rely on it.

On hover, the card rises with hover:-translate-y-1 while its shadow deepens to hover:shadow-xl, both smoothed by transition-all duration-300. The shadow does the real work: a lifted card without a deeper shadow looks like it slid, not rose, because our eyes read height from shadow softness. The resting shadow-sm keeps the card visually grounded until the cursor arrives.

For marketing pages, go bolder with -translate-y-2 and shadow-2xl; the drama suits sparse layouts. In dense dashboards, stay subtle (-translate-y-0.5, shadow-lg) so a grid of lifting cards does not feel seasick. Add a quiet border shift (hover:border-indigo-200) as a second signal for users who perceive color more than motion.

The mistake is animating with transition-all. That also tweens the shadow's blur radius and any color shifts through muddy intermediate states, and on low-end devices the combined transform-plus-shadow animation janks visibly. Scope the transition to what actually moves: transition-[transform,box-shadow] keeps the lift buttery while leaving colors to snap instantly.

Where to use it

  • ✓ Portfolio project cards
  • ✓ Directory listings
  • ✓ Blog post cards
  • ✓ Product grids

Customization tips

Increase to -translate-y-2 for more drama. Pair with a slight scale-105 for extra pop. Keep the transition at 300ms; faster feels twitchy.

Design notes

When to use

Use it for cards that link somewhere: portfolio projects, directory listings, blog post cards, and product grids. The slight rise and deepening shadow tells the cursor this card is clickable, which is exactly the affordance a linked card needs. The motion is subtle enough for dense grids.

What to avoid

Never put the lift on a card that is not clickable. Users will click expecting navigation, and a dead lift feels like a broken promise. If the card is static content, keep it flat.

Accessibility

Hover-only cues exclude touch and keyboard users, so make the whole card a real link with a visible focus style. Keep the motion subtle and respect prefers-reduced-motion.

Frequently asked questions

How much should a card lift on hover?

4px (-translate-y-1) is the sweet spot. More feels floaty, less is imperceptible. The shadow change matters more than the distance.

Should non-clickable cards lift?

No. Lift signals interactivity. Lifting a static card creates false affordance and frustrates users who click expecting navigation.

Lift vs border highlight on hover?

Lift suits cards that navigate somewhere. Border highlights suit selectable cards (like pricing tiers). Use lift for links, borders for selection.

How do I make the card lift smoothly without jumping?

Put the transition on the card's default state, not on the hover state, using something like transition-all duration-300. This element transitions both transform and box-shadow together so the card rises and the shadow deepens in sync. If only the transform transitions, the shadow snaps and the lift looks jumpy.

Why does my lifted card overlap the card next to it?

translateY moves the card visually but does not change its layout box, so a lifted card can cover its neighbors. This is usually fine and even desirable, but if it looks broken, add a higher z-index on hover or more gap between cards. For image zoom cards, use overflow-hidden so the zoom stays inside.

Should hover lift be disabled on touch devices?

Yes, or at least do not rely on it. Touch screens have no hover, and a tap can leave the card stuck in its lifted state. Wrap the hover styles in a @media (hover: hover) query so they only apply on devices with a real hover capability. The card stays fully usable on touch without the effect.

Customize it with our tools