跳至主要內容

按钮模版:btn-light-4

望间模板按钮小于 1 分钟

<div class="container">
  <button class="btn-light-4">View Room</button>
</div>
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  width: 100%;
  height: 200px;
}
.btn-light-4 {
  padding: 16px 28px;
  border-radius: 8px;
  background-image: linear-gradient(315deg, #89d8d3 0%, #03c8a8 74%);
  border: none;
  z-index: 1;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
  cursor: pointer;
}
.btn-light-4:after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  right: 0;
  z-index: -1;
  background-image: linear-gradient(315deg, #4dccc6 0%, #96e4df 74%);
  border-radius: 8px;
  box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, 0.5), 7px 7px 20px 0px
      rgba(0, 0, 0, 0.1), 4px 4px 5px 0px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.btn-light-4:hover:after {
  left: 0;
  width: 100%;
}
上次编辑于:
贡献者: ViewRoom