27 CSS Card Hover Effects

Curtain Reveal

A solid gradient overlay slides upward like a stage curtain to reveal the card content underneath.

Pure CSS MIT licensed

Curtain Reveal the 5th 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

Open in playground

The code

<div class="card-05">
  <div class="card-05__curtain"></div>
  <div class="card-05__content">
    <span class="card-05__tag">Motion</span>
    <h4 class="card-05__title">Curtain Reveal</h4>
    <p class="card-05__body">Content slides into view as overlay pulls away.</p>
    <span class="card-05__cta">Explore &rarr;</span>
  </div>
</div>
.card-05__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-05__title {
  font-size: 17px;
  font-weight: 700;
  color: #f0eeff;
  margin-bottom: 6px;
}
.card-05__body {
  font-size: 13px;
  color: #b8b6d4;
  line-height: 1.6;
}
.card-05 {
  width: 100%;
  max-width: 280px;
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 14px;
  background: #17171f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  min-height: 140px;
}
.card-05__curtain {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #7c6cff, #ff6c8a);
  transform: translateY(0);
  transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  border-radius: inherit;
}
.card-05:hover .card-05__curtain {
  transform: translateY(-105%);
}
.card-05__content {
  position: relative;
  z-index: 2;
}
.card-05__cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #7c6cff;
  font-weight: 600;
  transform: translateY(8px);
  opacity: 0;
  transition:
    transform 0.35s 0.18s ease,
    opacity 0.35s 0.18s ease;
}
.card-05:hover .card-05__cta {
  transform: translateY(0);
  opacity: 1;
}

Search CodeFronts

Loading…