پیش‌نمایش زنده
کد HTML
<button class="button">Click me</button>
کد CSS
.button {
  padding: 1em 2em;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff6f69;
  transition: all 500ms;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  outline: 2px solid #ff6f69;
}

button:hover {
  color: #ffffff;
  transform: scale(1.05);
  outline: 2px solid #ff6f69;
  box-shadow: 2px 3px 10px -2px #ff6f69;
}

button::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: #ff6f69;
  transform: skewX(45deg);
  z-index: -1;
  transition: width 500ms;
}

button:hover::before {
  width: 200%;
}
نوع: button
تاریخ ایجاد: 2026/06/05
آخرین بروزرسانی: 2026/06/05