Pens

Retro 8-Bit Pixel Arcade 3D Button

UI Component bởi acmatvjrus
Mở Studio
<div class="btn-stage">
  <button class="pixel-btn">START GAME</button>
</div>
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2b1055;
  font-family: "Courier New", Courier, monospace;
}
.pixel-btn {
  position: relative;
  background: #10a37a;
  color: #ffffff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 16px 40px;
  border: 4px solid #000000;
  cursor: pointer;
  box-shadow: 0 8px 0 #08634b, 0 12px 0 #000000;
  transition: all 0.1s ease;
  outline: none;
  text-transform: uppercase;
}
.pixel-btn:hover {
  background: #14b886;
  transform: translateY(2px);
  box-shadow: 0 6px 0 #08634b, 0 10px 0 #000000;
}
.pixel-btn:active {
  transform: translateY(8px);
  box-shadow: 0 0 0 #08634b, 0 4px 0 #000000;
}
// Optional sound effect on click
Đã sao chép vào bộ nhớ tạm!