پیش‌نمایش زنده
کد HTML
<div class="light-button">
  <button class="bt">
    <div class="light-holder">
      <div class="dot"></div>
      <div class="light"></div>
    </div>
    <div class="button-holder">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img">
        <circle fill="#0f0f0f" r="10" cy="12" cx="12"></circle>
        <circle fill="white" r="1.5" cy="10" cx="9"></circle>
        <circle fill="white" r="1.5" cy="10" cx="15"></circle>
        <path
          fill="none"
          stroke-width="2"
          stroke="white"
          d="M8,16 Q12,20 16,16"
        ></path>
      </svg>
      <p>Face</p>
    </div>
  </button>
</div>
کد CSS
.light-button button.bt {
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
  outline: none;
  background: none;
  border: none;
  cursor: pointer;
}

.light-button button.bt .button-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 100px;
  background-color: #0a0a0a;
  border-radius: 5px;
  color: #0f0f0f;
  font-weight: 700;
  transition: 300ms;
  outline: #0f0f0f 2px solid;
  outline-offset: 20;
}

.light-button button.bt .button-holder svg {
  height: 50px;
  fill: #0f0f0f;
  transition: 300ms;
}

.light-button button.bt .light-holder {
  position: absolute;
  height: 200px;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.light-button button.bt .light-holder .dot {
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  background-color: #0a0a0a;
  border-radius: 10px;
  z-index: 2;
}

.light-button button.bt .light-holder .light {
  position: absolute;
  top: 0;
  width: 200px;
  height: 200px;
  z-index: 1;
  clip-path: polygon(50% 0%, 25% 100%, 75% 100%);
  background: transparent;
}

.light-button button.bt:hover .button-holder svg {
  fill: rgba(255, 255, 255, 0.9); /* Soft white glow effect */
  transition: fill 0.3s ease-in-out;
}

.light-button button.bt:hover .button-holder {
  color: rgba(255, 255, 255, 1);
  border: 2px solid transparent;
  background-clip: padding-box;
  outline: none;
  outline-offset: 4px;
  box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.7); /* Soft glow effect */
  position: relative;
}

.light-button button.bt:hover .button-holder::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 8px;
  background: radial-gradient(circle at 0 0, hsl(27deg 93% 60%), transparent),
    radial-gradient(circle at 100% 0, #00a6ff, transparent),
    radial-gradient(circle at 0 100%, #ff0056, transparent),
    radial-gradient(circle at 100% 100%, #6500ff, transparent);
  z-index: -1;
  filter: blur(6px); /* Soft glow effect */
}

.light-button button.bt:hover .light-holder .light {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.9) 0%,
    /* Bright white center */ rgba(245, 245, 245, 0.7) 40%,
    /* Soft glowing white */ rgba(230, 230, 230, 0.4) 70%,
    /* Smooth fading */ rgba(210, 210, 210, 0.1) 90%,
    rgba(255, 255, 255, 0) 100% /* Natural fade-out */
  );
  filter: blur(12px); /* Enhances the soft glow effect */
  opacity: 0.85;
  transition:
    background 0.4s ease-in-out,
    opacity 0.3s ease-in-out;
}
نوع: button
تاریخ ایجاد: 2026/06/05
آخرین بروزرسانی: 2026/06/05