پیش‌نمایش زنده
کد HTML
<div class="card">
  <div class="card-info">
    <p class="title">New Magic Card</p>
  </div>
</div>
کد CSS
.card {
  --background: linear-gradient(to left, #a5c1e7 0%, #9b59b6 100%);
  width: 200px;
  height: 270px;
  padding: 10px;
  border-radius: 1rem;
  overflow: visible;
  background: #a5c1e7;
  background: var(--background);
  position: relative;
  z-index: 1;
}

.card::after {
  position: absolute;
  content: "";
  top: 40px;
  left: 0;
  right: 0;
  z-index: -1;
  height: 100%;
  width: 100%;
  transform: scale(0.85);
  filter: blur(30px);
  background: #a5c1e7;
  background: var(--background);
  transition: opacity 0.5s;
}

.card-info {
  --color: #ffffff;
  background: var(--color);
  color: var(--color);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: 0.6rem;
}

.card .title {
  font-weight: bold;
  letter-spacing: 0.2em;
  text-align: center;
}

/*Hover*/
.card:hover::after {
  opacity: 0;
}

.card:hover .card-info {
  color: #a5c1e7;
  transition: color 1s;
}
نوع: card
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06