Skip to content

Cards with Hover Lift

Pure CSS blog card grid where each card lifts with a deeper shadow and zooms its image on hover or keyboard focus.

Also known as: hover card effect, blog card grid, lift on hover cards, article cards

Cards with Hover Lift live demo

Open in new tab

Pure CSS code (HTML, CSS)

A responsive grid of blog cards built with pure CSS that lift off the page with a deeper shadow while the illustration inside zooms in. It suits article listings, travel journals, portfolio teasers and resource hubs, and needs no JavaScript at all.

How it works

The root section.chl-section contains a .chl-header and a ul.chl-grid of article.chl-card elements. Each card has a .chl-media block with an inline SVG landscape (.chl-art) and a .chl-body with a .chl-meta row (a .chl-tag pill and a time element), a .chl-title heading, a .chl-excerpt and a .chl-more label.

The heading link .chl-link is a stretched link: its ::after pseudo-element is absolutely positioned over the whole card, so a click anywhere on the card follows the link while the markup keeps a single, meaningful anchor. On :hover and :focus-within, .chl-card moves up by --chl-lift and switches from --chl-shadow to --chl-shadow-hover. At the same time .chl-art scales by --chl-zoom inside .chl-media, which has overflow: hidden, so the image grows without breaking the frame. The arrow inside .chl-more slides a few pixels to the right as an extra cue.

The grid is one column on phones, two columns from 640px and three columns from 960px. Each list item is a flex container, so cards in a row share the same height and the "Read story" labels line up.

Customization

  • --chl-lift on .chl-section: how far the card rises on hover, e.g. -4px for a subtle effect.
  • --chl-zoom: the scale of the illustration on hover; set it to 1 to turn the zoom off.
  • --chl-speed: duration of the lift; the image zoom uses 1.6 times this value for a softer feel.
  • --chl-shadow and --chl-shadow-hover: the resting and lifted shadows of each card.
  • --chl-accent: color of the eyebrow, tag pill, "Read story" label and focus ring.
  • --chl-radius: corner radius of the cards.
  • .chl-media--dune, .chl-media--forest and .chl-media--lake: gradient and shape color of each illustration. Replace the svg.chl-art with an img (keep the class) to use real photos.
  • grid-template-columns in the .chl-grid media queries: change the number of columns per breakpoint.

Use cases

  • Article listings: blog cards lift with a deeper shadow when a reader hovers or focuses them
  • Travel journals: the card illustration zooms slightly to invite a click
  • Portfolio teasers: a responsive grid shows projects without any JavaScript
  • Resource hubs: keyboard focus triggers the same lift so the effect is not mouse-only

Accessibility

Each card has exactly one link, the article heading, so screen readers announce a clear link name instead of a whole card of text. The illustration and the "Read story" label are aria-hidden. When the link receives keyboard focus, :focus-within lifts the card just like hover, and :has(.chl-link:focus-visible) draws a visible outline around the whole card. Dates use time elements with a machine-readable datetime. With prefers-reduced-motion: reduce, the lift, zoom and arrow movement are removed while the stronger shadow still marks the active card.

Usage notes

The :has() focus ring works in all current browsers; older browsers still show the lifted state on focus. Keep interactive elements other than the main link out of the card, or give them position: relative; z-index: 2 so they sit above the stretched link.

Cards with Hover Lift at a glance

Framework
Pure CSS
Code
HTML, CSS
JavaScript
Not needed, CSS only
Dependencies
None
Layout
Responsive, works on mobile
Category
Cards
License
Free for personal and commercial use

Questions about this template

Can I use the Cards with Hover Lift code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. It is built with HTML and CSS only, so there is no JavaScript to load.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Cards with Hover Lift – free Pure CSS card template
Cards with Hover Lift · free Pure CSS card template

More Cards

3D Flip Card – free Pure CSS card template

3D Flip Card

Three pure CSS 3D flip cards that turn on hover, keyboard focus or tap to reveal details and a link on the back.

Event Card with Photo and Date Badge – free Pure CSS card template

Event Card with Photo and Date Badge

Pure CSS event cards with a cover photo, ticket-stub date badge, category chip, time and venue details, price and a ticket button.

Blog Post Card – free Tailwind CSS card template

Blog Post Card

Tailwind CSS blog post card with cover illustration, category badge, date, reading time, clamped excerpt, author row and a fully clickable area.

Card with Image Overlay Text – free Bootstrap 6 card template

Card with Image Overlay Text

Dark Bootstrap 6 travel cards with headline, place and price set over full-bleed photos, a gradient scrim for readability, save buttons and a Toast.

Glassmorphism Card – free Tailwind CSS card template

Glassmorphism Card

Frosted glass profile card in Tailwind CSS with backdrop blur, a light reflection and a follow button over colorful animated gradient blobs.

Interactive Card with Hover Lift – free Bootstrap 6 card template

Interactive Card with Hover Lift

Bootstrap 6 clickable learning path cards that lift with a soft shadow on hover and keyboard focus, using hover-lift, stretched links and a level filter.