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

按钮 · Sweet Squid

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

[hidecontent type="vip1"]
<button>
  Button
</button>
<style>
/* From Uiverse.io by Showbizfleet - Tags: button */
button {
  height: 50px;
  margin: 5px;
  width: 120px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  border: none;
  border-radius: 5px;
  background: linear-gradient(145deg, #9c27b0, #f44336, #ff9800, #ffc107, #8bc34a, #4caf50, #2196f3, #03a9f4, #00bcd4, #009688);
  background-size: 200%;
  background-position: 0%;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25), inset 0px -1px 0px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease-in-out;
}

button:hover {
  background-position: 100%;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25), inset 0px -2px 0px rgba(255, 255, 255, 0.2);
}

button:focus {
  outline: none;
}

button:active {
  background-size: 100%;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25), inset 0px -1px 0px rgba(255, 255, 255, 0.2);
}

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