CARDS

Hover Lift Card

A modern content card with a smooth lift effect, soft glow and subtle border highlight on hover. Copy the HTML and CSS for your own project.

FEATURED

Build Better Interfaces

Use subtle motion, spacing and contrast to make simple interface elements feel more polished.

Learn More
HTML
<div class="hover-lift-card">

  <span class="hover-lift-badge">FEATURED</span>

  <h2>Build Better Interfaces</h2>

  <p>
    Use subtle motion, spacing and contrast to make simple
    interface elements feel more polished.
  </p>

  <a href="#" class="hover-lift-link">
    Learn More
    <span>→</span>
  </a>

</div>
CSS
.hover-lift-card{
  width:100%;
  max-width:360px;
  padding:30px;
  background:#08111f;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  color:#ffffff;
  box-shadow:0 15px 35px rgba(0,0,0,.25);
  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.hover-lift-card:hover{
  transform:translateY(-8px);
  border-color:#22d3ee;
  box-shadow:
    0 24px 50px rgba(0,0,0,.35),
    0 0 24px rgba(34,211,238,.12);
}

.hover-lift-badge{
  display:inline-block;
  margin-bottom:16px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(34,211,238,.10);
  color:#22d3ee;
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
}

.hover-lift-card h2{
  margin:0 0 12px;
  color:#ffffff;
  font-size:24px;
}

.hover-lift-card p{
  margin:0 0 22px;
  color:#9fb3cc;
  font-size:14px;
  line-height:1.7;
}

.hover-lift-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#22d3ee;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
}

.hover-lift-link span{
  transition:transform .25s ease;
}

.hover-lift-card:hover .hover-lift-link span{
  transform:translateX(5px);
}

How This Hover Lift Card Works

The Hover Lift Card is a compact content card that uses CSS transforms, border changes, and shadows to create a simple lift effect on hover. The published component uses HTML and CSS only, so no JavaScript is required for the interaction.

The main .hover-lift-card container uses width: 100% with max-width: 360px, allowing it to shrink inside smaller layouts while keeping a controlled maximum width. It has 30px of padding, a dark #08111f background, a subtle semi-transparent border, and an 18px border radius.

The default shadow is set to 0 15px 35px rgba(0,0,0,.25), which gives the card some depth even before interaction. The component transitions three properties: transform, border-color, and box-shadow. Each transition uses .3s ease, so the changes happen gradually instead of snapping immediately.

When the user hovers over the card, .hover-lift-card:hover applies transform: translateY(-8px). This moves the entire card eight pixels upward. The border changes from a faint white to the cyan #22d3ee, while the shadow becomes larger and gains an additional cyan glow. For more detail about this kind of animation behavior, see the MDN CSS transitions documentation.

The card begins with a FEATURED badge. The .hover-lift-badge uses display: inline-block, which allows it to keep a compact width instead of stretching across the card. Its 999px border radius creates the pill shape, while a semi-transparent cyan background keeps it visually connected to the brighter cyan text.

Below the badge, the Build Better Interfaces heading uses a 24px font size. Its margins are controlled directly through the .hover-lift-card h2 selector, leaving 12px of spacing before the supporting paragraph.

The description uses a muted #9fb3cc color, a 14px font size, and 1.7 line height. This lower contrast keeps the paragraph secondary to the heading while still making the text easy to read against the dark background.

At the bottom, the Learn More link uses inline-flex and align-items: center. An 8px gap separates the label from the arrow. The link itself uses the same cyan accent as the border and badge text.

The arrow inside .hover-lift-link span has its own .25s ease transform transition. Instead of reacting only when the link is hovered, it responds when the entire card is hovered. The selector .hover-lift-card:hover .hover-lift-link span applies translateX(5px), moving the arrow five pixels to the right while the card lifts upward.

Customizing This Hover Lift Card

The component is easy to adapt because its main visual behavior is controlled by a small set of existing CSS values.

  • Change max-width: 360px to make the card wider or narrower.
  • Replace the FEATURED badge text, heading, paragraph, and Learn More label with your own content.
  • Change the #08111f background to match your interface.
  • Replace the cyan #22d3ee accent used for the border, badge, and link.
  • Adjust the 18px border radius or 30px padding to change the card shape and spacing.
  • Increase or reduce translateY(-8px) to control how far the card lifts.
  • Modify the .3s ease transition if you want the card movement to feel faster or slower.
  • Change the arrow’s translateX(5px) value or .25s transition to adjust its movement.

Where to Use This Hover Lift Card

This component works well when a simple block of content needs a clear hover response without adding complex animation logic.

  • Feature sections on landing pages.
  • Service or capability cards.
  • Blog or resource previews.
  • Portfolio project summaries.
  • Dashboard information panels.
  • Product feature highlights.
  • Call-to-action sections with a supporting link.

Because the card uses only CSS, multiple copies can be placed inside Grid or Flexbox layouts without adding JavaScript. For a more dimensional hover-based card design, the 3D Hover Monster Cards component is a related CodeRipple option.

Frequently Asked Questions

Does the Hover Lift Card use JavaScript?

No. The published component contains only HTML and CSS. The lift effect, border change, shadow change, and arrow movement are all handled with CSS.

How far does the card move on hover?

The card uses transform: translateY(-8px), which moves it eight pixels upward from its normal position.

How does the arrow animation work?

The arrow is inside a <span> with a .25s ease transform transition. When the whole card is hovered, CSS applies translateX(5px) to move the arrow slightly to the right.

What creates the cyan glow on hover?

The hovered card uses two box shadows. The second is 0 0 24px rgba(34,211,238,.12), which adds a subtle cyan glow around the component.

The Hover Lift Card keeps the interaction lightweight while combining a clear upward movement, accent border, expanded shadow, and small arrow animation in a reusable CSS card.

Scroll to Top