motionsites中文站 / 按钮 · Thin Wombat
按钮 · Thin Wombat
aadmin2026-09-19 发布组件0 阅读

按钮 · Thin Wombat

类型:组件 · 分类:按钮 · 收录:2026-09-19 · 源码:会员可见

[hidecontent type="vip1"]
<button class="wave-button">Click me</button>

<style>
/* From Uiverse.io by Salahkarrar  - Tags: button, hover, light, click */
.wave-button {
  background-color: #eaf2f8;
  border: 2px solid #ddd;
  color: #000;
  padding: 15px 30px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wave-button:before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0px;
  background-color: rebeccapurple;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
  transition: all 0.5s ease;
}

.wave-button:hover {
  background-color: #ddd;
  border-color: rebeccapurple;
}

.wave-button:hover:before {
  height: 5%;
  width: 100%;
  animation: wave-animation 0.5s linear forwards;
}

@keyframes wave-animation {
  to {
    right: 100%;
  }
}

.wave-button span {
  position: relative;
  z-index: 1;
}

</style>
    
[/hidecontent]
← 返回首页