27 CSS Card Hover Effects

Neon Sign

Border glows and title text pulses with layered neon box-shadows on hover, with a CSS flicker animation.

Pure CSS MIT licensed

Neon Sign the 7th 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-07">
  <span class="card-07__tag">Neon</span>
  <h4 class="card-07__title">Neon Sign</h4>
  <p class="card-07__body">Hover to see the glow flicker to life.</p>
  <div class="card-07__line"></div>
</div>
.card-07__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-07__title {
  font-size: 17px;
  font-weight: 700;
  color: #f0eeff;
  margin-bottom: 6px;
}
.card-07__body {
  font-size: 13px;
  color: #b8b6d4;
  line-height: 1.6;
}
.card-07 {
  width: 100%;
  max-width: 280px;
  padding: 22px;
  border-radius: 14px;
  background: #07070e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.card-07:hover {
  border-color: rgba(124, 108, 255, 0.6);
  box-shadow:
    0 0 28px rgba(124, 108, 255, 0.12),
    inset 0 0 28px rgba(124, 108, 255, 0.04);
}
.card-07__title {
  font-size: 22px;
  letter-spacing: 0.04em;
  transition:
    text-shadow 0.3s,
    color 0.3s;
}
.card-07:hover .card-07__title {
  color: #c0b4ff;
  text-shadow:
    0 0 6px #7c6cff,
    0 0 14px #7c6cff,
    0 0 30px rgba(124, 108, 255, 0.5);
  animation: card-07-flicker 1.2s ease-out forwards;
}
@keyframes card-07-flicker {
  0%, 100% { opacity: 1; }
  8% { opacity: 0.82; }
  10% { opacity: 1; }
  60% { opacity: 0.9; }
  62% { opacity: 1; }
}
.card-07__line {
  margin-top: 14px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.15);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.card-07:hover .card-07__line {
  background: #7c6cff;
  box-shadow: 0 0 8px #7c6cff;
}

Search CodeFronts

Loading…