پیش‌نمایش زنده
کد HTML
<button class="button">
  Check it out!
  <svg class="icon" viewBox="0 0 24 24" fill="currentColor">
    <path
      fill-rule="evenodd"
      d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm4.28 10.28a.75.75 0 000-1.06l-3-3a.75.75 0 10-1.06 1.06l1.72 1.72H8.25a.75.75 0 000 1.5h5.69l-1.72 1.72a.75.75 0 101.06 1.06l3-3z"
      clip-rule="evenodd"
    ></path>
  </svg>
</button>
کد CSS
button {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  border: 2px solid black;
  border-radius: 7px;
  padding: 0.3rem 0.5rem;
  background-color: white;
  box-shadow: 5px 5px 0px black;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

button:hover {
  box-shadow: 0 0 0 black;
  transform: translateY(3px) translateX(3px);
}

.icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease-in-out;
}
نوع: button
تاریخ ایجاد: 2026/06/05
آخرین بروزرسانی: 2026/06/05