پیش‌نمایش زنده
کد HTML
<button class="button">HOVER ME</button>
کد CSS
.button {
  height: 55px;
  width: 175px;
  margin: auto;
  align-items: center;
  border-radius: 50px;
  border: none;
  text-align: center;
  color: transparent;
  text-shadow: 0 0 0 rgb(255, 255, 255);
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 50ms ease;
  background: linear-gradient(90deg, #fdec53, #f441a5, #b81fff, #5f03f4);
  background-size: 400%;
  animation: welcome 0.5s ease 0s 1 normal forwards;
  display: block;
  margin-right: auto;
  margin-left: auto;
  font-family: "Montserrat", sans-serif;
}

.button:hover {
  -webkit-box-shadow: 0px 0px 15px 0px rgba(230, 219, 67, 0.9);
  -moz-box-shadow: 0px 0px 15px 0px rgba(224, 178, 78, 0.9);
  box-shadow: 0px 0px 15px 0px rgba(212, 133, 109, 0.9);
  animation: animate 8s ease infinite;
  transition: box-shadow, 0.4s;
  border: none;
  font-size: 19px;
  transform: scale(1.05, 1.05);
  background: linear-gradient(90deg, #fdec53, #cc5e4a, #dfad41, #fdec53);
  background-size: 400%;
}

@keyframes animate {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 400%;
  }
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }

  100% {
    --rotate: 360deg;
  }
}

.button:hover:before {
  filter: blur(20px);
  opacity: 1;
  animation: animate 8s linear infinite;
}
نوع: button
تاریخ ایجاد: 2026/06/05
آخرین بروزرسانی: 2026/06/05