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

按钮 · Old Emu

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

[hidecontent type="vip1"]
<button class="button">
  Button
</button>
<style>
/* From Uiverse.io by KhaledMatalkah - Tags: button, hover */
.button {
  background: transparent;
  color: #fff;
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  transition: background-color 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.button:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  pointer-events: none;
}

.button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.button:hover:before {
  transform: translateX(0);
}

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