性能
通过帧率: 平均 60 fps,p5 59.9 · 长任务: 0 个,共 0 毫秒,最长 0 毫秒 · 源码 gzip 1.7 KB · 运行时 3.1 KB
unlucky-rat-66MIT按钮Uiverse.io
d3uceY 用纯 HTML 和 CSS 做的按钮。按 MIT 许可从 Uiverse.io 收录,此处为实时预览。
质量报告
等级和分数来自构建或测试时跑过的自动检查。没跑过的项目会标成「未检测」,不会填假数据。
帧率: 平均 60 fps,p5 59.9 · 长任务: 0 个,共 0 毫秒,最长 0 毫秒 · 源码 gzip 1.7 KB · 运行时 3.1 KB
问题 1 · 读屏: 通过
没有持续动效
无溢出
帧率和长任务是在无界面的 Chromium 里用软件 WebGL 测的,只适合在本站组件之间比较,不代表真机表现。
不适用:静止时没有可见动画;由悬停触发的动画没有测试。

检测于 2026年11月15日 · 数据来自自动脚本,不是手工填写。
按实际尺寸显示。
复制内容以许可声明开头,使用代码时请保留。
<button class="download-btn pixel-corners">
<div class="button-content">
<div class="svg-container">
<svg
class="download-icon"
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
>
<path
d="M19.479 10.092c-.212-3.951-3.473-7.092-7.479-7.092-4.005 0-7.267 3.141-7.479 7.092-2.57.463-4.521 2.706-4.521 5.408 0 3.037 2.463 5.5 5.5 5.5h13c3.037 0 5.5-2.463 5.5-5.5 0-2.702-1.951-4.945-4.521-5.408zm-7.479 6.908l-4-4h3v-4h2v4h3l-4 4z"
></path>
</svg>
</div>
<div class="text-container">
<div class="text">Download</div>
</div>
</div>
</button>/* From Uiverse.io by d3uceY - Tags: icon, animation, red, button, hover, active, rounded, download */
.download-btn {
height: 45px;
width: 95px;
cursor: pointer;
background: white;
border: none;
background: #ff0021;
border-radius: 30px;
overflow: hidden;
}
.button-content {
transform: translateY(-45px);
transition: all 250ms ease-in-out;
}
.svg-container,
.text-container {
height: 45px;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.text-container .text {
font-size: 13px;
color: #fff;
font-weight: 600;
opacity: 1;
transition: opacity ease-in-out 250ms;
}
.download-icon {
height: 25px;
width: 25px;
fill: #fff;
opacity: 0;
transition: opacity ease-in-out 250ms;
}
/* hover state for the button */
.download-btn:hover .button-content {
transform: translateY(0px);
}
.download-btn:hover .text {
opacity: 0;
}
.download-btn:hover .download-icon {
opacity: 1;
}
.download-btn:focus .download-icon {
-webkit-animation: heartbeat 1.5s ease-in-out infinite both;
animation: heartbeat 1.5s ease-in-out infinite both;
}
@-webkit-keyframes heartbeat {
from {
-webkit-transform: scale(1);
transform: scale(1);
-webkit-transform-origin: center center;
transform-origin: center center;
-webkit-animation-timing-function: ease-out;
animation-timing-function: ease-out;
}
10% {
-webkit-transform: scale(0.91);
transform: scale(0.91);
-webkit-animation-timing-function: ease-in;
animation-timing-function: ease-in;
}
17% {
-webkit-transform: scale(0.98);
transform: scale(0.98);
-webkit-animation-timing-function: ease-out;
animation-timing-function: ease-out;
}
33% {
-webkit-transform: scale(0.87);
transform: scale(0.87);
-webkit-animation-timing-function: ease-in;
animation-timing-function: ease-in;
}
45% {
-webkit-transform: scale(1);
transform: scale(1);
-webkit-animation-timing-function: ease-out;
animation-timing-function: ease-out;
}
}
@keyframes heartbeat {
from {
-webkit-transform: scale(1);
transform: scale(1);
-webkit-transform-origin: center center;
transform-origin: center center;
-webkit-animation-timing-function: ease-out;
animation-timing-function: ease-out;
}
10% {
-webkit-transform: scale(0.91);
transform: scale(0.91);
-webkit-animation-timing-function: ease-in;
animation-timing-function: ease-in;
}
17% {
-webkit-transform: scale(0.98);
transform: scale(0.98);
-webkit-animation-timing-function: ease-out;
animation-timing-function: ease-out;
}
33% {
-webkit-transform: scale(0.87);
transform: scale(0.87);
-webkit-animation-timing-function: ease-in;
animation-timing-function: ease-in;
}
45% {
-webkit-transform: scale(1);
transform: scale(1);
-webkit-animation-timing-function: ease-out;
animation-timing-function: ease-out;
}
}
/* hover state for the button */控件 · HTML · CSS · JS
直接改代码,再用控件微调,预览会随输入实时更新。

在线编辑每个组件,用控件微调,下载完整源码,复制进阶提示词。
一次性 $49占位价格
测试模式:不会真实扣款。
免费:预览、复制按钮和课程说明。
小小的红色胶囊显示下载图标,悬停时内容滑动 45px 露出 Download 字样,紧凑又灵动。
文件、应用和资源的下载链接。
改 #ff0021 填充、95px × 45px 尺寸、30px 圆角和 250ms 滑动。
用纯 HTML、CSS 和 JavaScript(不用框架)做一个「红色下载胶囊」组件。小小的红色胶囊显示下载图标,悬停时内容滑动 45px 露出 Download 字样,紧凑又灵动。 适用场景:文件、应用和资源的下载链接。 开放这些可调项:改 #ff0021 填充、95px × 45px 尺寸、30px 圆角和 250ms 滑动。 支持浅色和深色主题,遵守 prefers-reduced-motion 并给出静止画面,保证文字清晰、控件可用键盘操作。请写原创代码,不要从付费或受限的组件库复制。
更完整的提示词,包含调参、无障碍和接入步骤。