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

按钮 · Calm Cougar

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

[hidecontent type="vip1"]
<button class="Btn">
  Join now
</button>

<style>
/* From Uiverse.io by vinodjangid07 - Tags: gradient, button, hover */
.Btn {
  width: 150px;
  height: 50px;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 13.5px;
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  cursor: pointer;
  background: linear-gradient(-45deg, #6bc5f8, #cf59e6, #6bc5f8, #cf59e6);
  background-size: 1000% 1000%;
  animation: gradient 5s ease infinite;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.247);
  transition-duration: .1s;
}
/* Button's gradient animation */
@keyframes gradient {
  0% {
    background-position: 0 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}
/* Effect on Hover*/
.Btn::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 100%;
  left: -70px;
  top: 0;
  background-color: rgba(214, 199, 255, 0.329);
  filter: blur(10px);
  transition-duration: .3s;
  border-top-left-radius: 50%;
  border-bottom-right-radius: 50%;
}

.Btn:hover::before {
  transform: translateX(250px);
  transition-duration: .3s;
}
/* Effect on click */
.Btn:active {
  transform: translate(2px,2px);
  transition-duration: .1s;
}
</style>
[/hidecontent]
← 返回首页