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

按钮 · Grumpy Elephant

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

[hidecontent type="vip1"]
<button class="btn">
  Button
</button>
<style>
/* From Uiverse.io by eslam-hany - Tags: button */
.btn {
  position: relative;
  padding: 10px 50px;
  font-size: 20px;
  border: 1px solid #002B5B;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 15px;
  transition: all 0.5s;
  z-index: 1;
}

.btn:hover {
  transform: scale(1.1);
  color: #fff;
  transition: all 0.5s;
}

.btn::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 0%;
  height: 100%;
  border-radius: 15px;
  background: linear-gradient(#002B5b,#EA5455);
  transition: all 0.5s;
  z-index: -1;
}

.btn:hover::after {
  top: 0%;
  left: 0%;
  width: 100%;
  transition: all 0.5s;
}
</style>
[/hidecontent]
← 返回首页