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

按钮 · Bright Warthog

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

[hidecontent type="vip1"]
<button class="button">
  Hover me
</button>
<style>
/* From Uiverse.io by gharsh11032000 - Tags: button */
.button {
  position: relative;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  background-color: #e8e8e8;
  padding: 15px 30px;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.button:before {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 100%;
  height: 20%;
  background-color: #e8e8e8;
  translate: -100% 0;
  rotate: 45deg;
  transition: all 0.4s ease;
}

.button:hover {
  color: #e8e8e8;
  background-color: #8364e8;
  box-shadow: 0 0 24px 8px rgba(131, 100, 232, 0.4);
}

.button:hover:before {
  translate: 100%;
}

.button:active {
  scale: 0.95;
  box-shadow: 0 0 16px 4px rgba(131, 100, 232, 0.4);
}

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