The problem
You want cards that have a smooth lifting effect when users hover over them.
The solution
.lift-card {
background: #1a1a2e;
border-radius: 12px;
padding: 24px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
.lift-card:hover {
transform: translateY(-8px);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.3),
0 0 30px rgba(58, 123, 255, 0.2);
}See it live
Put it to work
<div class="lift-card">
<h3>Card Title</h3>
<p>Hover over me to see the lift effect!</p>
</div>