پیش‌نمایش زنده
کد HTML
<button class="button">
  <span class="bracket left">❴</span>
  <span class="text">Code</span>
  <span class="bracket right">❵</span>
</button>
کد CSS
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 45px;
  width: 45px;
  border: none;
  border-radius: 10px;
  background-color: black;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}
.bracket {
  font-size: 18px;
  transition: all 0.3s;
  color: rgb(182, 104, 255);
}
.text {
  font-size: 15px;
  width: 0;
  transform: scale(0);
  transition: all 0.3s;
  color: white;
}
.button:hover {
  width: 100px;
}
.button:hover .text {
  transform: scale(1);
  width: 40px;
}
نوع: button
تاریخ ایجاد: 2026/06/05
آخرین بروزرسانی: 2026/06/05