Stacked Reveal
Two ghost cards fan out from beneath the front card on hover using rotate and translate transforms.
Stacked Reveal the 3rd of 27 designs in the 27 CSS Card Hover Effects collection. The design is implemented in pure CSS — no JavaScript required. Copy the HTML and CSS panels below into your project. Because the demo is pure CSS, it works in any framework or templating engine you happen to use. The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.
Live preview
The code
<div class="card-03">
<div class="card-03__back card-03__back--2"></div>
<div class="card-03__back card-03__back--1"></div>
<div class="card-03__front">
<span class="card-03__tag">CSS</span>
<h4 class="card-03__title">Stacked Reveal</h4>
<p class="card-03__body">Hidden cards fan out from beneath.</p>
</div>
</div> .card-03__tag {
font-family: monospace;
font-size: 10px;
padding: 2px 8px;
border-radius: 20px;
background: rgba(124, 108, 255, 0.15);
color: #7c6cff;
border: 1px solid rgba(124, 108, 255, 0.3);
display: inline-block;
margin-bottom: 10px;
}
.card-03__title {
font-size: 17px;
font-weight: 700;
color: #f0eeff;
margin-bottom: 6px;
}
.card-03__body {
font-size: 13px;
color: #b8b6d4;
line-height: 1.6;
}
.card-03 {
width: 100%;
max-width: 280px;
position: relative;
cursor: pointer;
min-height: 130px;
}
.card-03__back {
position: absolute;
inset: 0;
border-radius: 14px;
transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.card-03__back--1 {
background: rgba(124, 108, 255, 0.25);
border: 1px solid rgba(124, 108, 255, 0.4);
}
.card-03__back--2 {
background: rgba(255, 108, 138, 0.18);
border: 1px solid rgba(255, 108, 138, 0.3);
}
.card-03__front {
position: relative;
z-index: 2;
padding: 22px;
border-radius: 14px;
background: #17171f;
border: 1px solid rgba(255, 255, 255, 0.08);
transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.card-03:hover .card-03__back--1 {
transform: translate(-14px, 10px) rotate(-5deg);
}
.card-03:hover .card-03__back--2 {
transform: translate(14px, 12px) rotate(5deg);
}
.card-03:hover .card-03__front {
transform: translateY(-4px);
}