پیش‌نمایش زنده
کد HTML
<button class="btn" type="button">
  <div class="smoke">
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
    <div class="cloud"></div>
  </div>
  <div class="title">
    <span class="thunder">⚡</span>
    <strong class="description">Join now</strong>
  </div>
  <div class="glass">
    <div class="inner-glass"></div>
  </div>
</button>
کد CSS
.btn {
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  width: 20rem;
  height: 6rem;
  border-top: 2px double #ffffff92;
  border-bottom: none;
  border-left: 2px outset #0000007e;
  border-right: 2px solid #007bff; /* Changed border color to blue */
  border-radius: 1.8rem;
  background-origin: border-box;
  background-clip: content-box, border-box;
  filter: hue-rotate(-15deg) drop-shadow(0px 30px 10px #00000028) saturate(2);

  background: linear-gradient(
    64.14deg,
    #4287f5 0%,
    /* Changed gradient start color to blue */ #7abaff 10%,
    /* Changed gradient color */ #5caaff 15.58%,
    /* Changed gradient color */ #7abaff 28.15%,
    /* Changed gradient color */ #4a9eff 45.31%,
    /* Changed gradient color */ #2f7bff 53.18%,
    /* Changed gradient color */ #3e84ff 58.79%,
    /* Changed gradient color */ #5caaff 65.28%,
    /* Changed gradient color */ #7abaff 75.48%,
    /* Changed gradient color */ #5caaff 85.31%,
    /* Changed gradient color */ #7abaff 100.29%
      /* Changed gradient end color */
  );
  transition: all 0.5s;
}

.btn:hover {
  transform: scale(1.1);
  filter: hue-rotate(-365deg) drop-shadow(0px 30px 10px #00000028) saturate(2);
}

.btn:hover .title > strong {
  font-size: 1.2rem;
  font-weight: 800;
  transition: all 0.8s;
}

.glass {
  z-index: 10;
  display: flex;
  border: double 2px rgba(255, 255, 255, 0.263);
  backdrop-filter: blur(2px);
  filter: blur(1px) brightness(1.1) saturate(50%) hue-rotate(30deg);
  border-radius: 1.6rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background-color: #ffffff1c;
  background-origin: content-box;
  background-clip: content-box, border-box;
  box-shadow: inset 0 0 10px #a84fd88d;
}

.inner-glass {
  z-index: 10;
  display: flex;
  border-left: 1px solid rgba(255, 255, 255, 0.564);
  border-right: 1px solid rgb(255, 255, 255);
  backdrop-filter: blur(40px);
  box-shadow: inset 0 0 20px rgba(246, 142, 213, 0.86);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 0.6rem;
  width: 100%;
  height: 100%;
  background-origin: border-box;
  background-clip: content-box, border-box;
  filter: brightness(140%);
}

.title {
  inset: 0;
  display: flex;
  text-align: center;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 90;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 1rem;
  gap: 0.5rem;
}

.thunder {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%) brightness(0);
  font-size: 1.2rem;
}

.description {
  font-size: 1.2rem;
  font-weight: 600;
}

.smoke {
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
}

.cloud {
  position: absolute;
  border-radius: 9999px;
}

/* Cloud styles remain unchanged */
نوع: button
تاریخ ایجاد: 2026/06/05
آخرین بروزرسانی: 2026/06/05