پیش‌نمایش زنده
کد HTML

    <div class="card1">
        
    </div>
کد CSS
.card1 {
  background-color: black;
  width: 250px;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-shadow: 2px 2px 19px;
}

.card1::before {
  content: "";
  position: absolute;
  z-index: -19;
  width: 262px;
  height: 312px;
  margin: auto;
  background: rgb(4,0,255);
  background: linear-gradient(135deg, rgba(4,0,255,1) 0%, rgba(136,0,255,1) 35%, rgba(209,0,255,1) 100%);
  border-radius: 6px;
}

.card1::after {
  content: "";
  position: absolute;
  z-index: -19;
  width: 262px;
  height: 312px;
  margin: auto;
  background: rgb(4,0,255);
  background: linear-gradient(135deg, rgba(4,0,255,1) 0%, rgba(136,0,255,1) 35%, rgba(209,0,255,1) 100%);
  border-radius: 6px;
  filter: blur(20px);
  transition: 2s;
}

.card1:hover::after {
  animation: cardafter 2.5s infinite forwards;
}

@keyframes cardafter {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
نوع: card
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06