Lift Fade Hover Effect

A hover effect that combines subtle lift with background fade to indicate interactivity without visual noise.

HTML

<div class="hover-lift">
  Hover me
</div>

CSS

.hover-lift {
  width: 200px;
  padding: 0.75rem 0;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  transition: transform 150ms ease, background 150ms ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  background: #eef2ff;
}

@media (prefers-color-scheme: dark) {
  .hover-lift {
    background: #020617;
    color: #e5e7eb;
  }

  .hover-lift:hover {
    background: #1e1b4b;
  }
}

Notes

  • Clear hover affordance
  • No scale distortion
  • Works for cards and list items

Preview styles shown. Production customization recommended.

Browse More UI Components

Explore hundreds of reusable HTML & CSS UI components built for modern web projects.
Discover buttons, cards, loaders, animations, layouts, and more all with live previews and clean, copy-paste code.

Leave a Reply

Your email address will not be published. Required fields are marked *