Back to CSS Card Hover Effects Color Burn Pure CSS
Share
HTML
<div class="card-24">
  <div class="card-24__burn"></div>
  <span class="card-24__tag">Burn</span>
  <h4 class="card-24__title">Color Burn</h4>
  <p class="card-24__body">Gradient bloom erupts from the corner.</p>
</div>
CSS
.card-24__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-24__title {
  font-size: 17px;
  font-weight: 700;
  color: #f0eeff;
  margin-bottom: 6px;
}
.card-24__body {
  font-size: 13px;
  color: #b8b6d4;
  line-height: 1.6;
}
.card-24 {
  width: 100%;
  max-width: 280px;
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 14px;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: border-color 0.4s;
}
.card-24:hover {
  border-color: rgba(255, 108, 138, 0.4);
}
.card-24__burn {
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 108, 138, 0.9) 0%,
    rgba(124, 108, 255, 0.65) 40%,
    transparent 70%
  );
  transform: scale(0);
  transform-origin: center;
  pointer-events: none;
  filter: blur(2px);
  transition:
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
    border-radius 0.55s ease;
}
.card-24:hover .card-24__burn {
  transform: scale(5.5);
  border-radius: 40%;
}
.card-24__tag,
.card-24__title,
.card-24__body {
  position: relative;
  z-index: 1;
}