27 CSS Card Hover Effects

Overlay Slide

A full gradient overlay slides in from the left on hover, revealing a CTA that fades in with a stagger delay.

Pure CSS MIT licensed

Overlay Slide the 19th 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-19">
  <div class="card-19__overlay">
    <span class="card-19__cta">View Project &rarr;</span>
  </div>
  <div class="card-19__content">
    <span class="card-19__icon">🚀</span>
    <span class="card-19__tag">Project</span>
    <h4 class="card-19__title">Overlay Slide</h4>
    <p class="card-19__body">Full overlay slides in from the left.</p>
  </div>
</div>
.card-19__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-19__title {
  font-size: 17px;
  font-weight: 700;
  color: #f0eeff;
  margin-bottom: 6px;
}
.card-19__body {
  font-size: 13px;
  color: #b8b6d4;
  line-height: 1.6;
}
.card-19 {
  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: 130px;
}
.card-19__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.94), rgba(255, 108, 138, 0.9));
  transform: translateX(-101%);
  transition: transform 0.42s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: inherit;
}
.card-19:hover .card-19__overlay {
  transform: translateX(0);
}
.card-19__cta {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateX(-18px);
  opacity: 0;
  transition:
    transform 0.35s 0.16s ease,
    opacity 0.35s 0.16s ease;
}
.card-19:hover .card-19__cta {
  transform: translateX(0);
  opacity: 1;
}
.card-19__content {
  position: relative;
  z-index: 1;
}
.card-19__icon {
  font-size: 28px;
  margin-bottom: 10px;
  color: #7c6cff;
  display: block;
}

Search CodeFronts

Loading…