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

按钮 · Horrible Goat

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

[hidecontent type="vip1"]
<button>Notification By HTML Data attribute</button>
<style>
/* From Uiverse.io by mostafabazyar - Tags: button */
button {
  position: relative;
  margin: 1rem;
  z-index: 2;
  border-radius: 8px;
  appearance: none;
  padding: 1em 2em;
  transition: all 0.2s;
}

button {
  padding: 1.2rem;
  position: relative;
  z-index: 1;
}

button::before {
  content: "6";
  position: absolute;
  display: flex;
  top: -0.75em;
  right: -0.75em;
  height: 1.8em;
  width: 1.8em;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: red;
  color: white;
  z-index: 999;
  transition: all 0.2s;
}

button:hover {
  border-radius: 3px;
  border-color: red;
}

button:hover::before {
  height: 2em;
  width: 2em;
  font-size: 1.5em;
}
</style>
[/hidecontent]
← 返回首页