效能
通過幀率: 平均 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 並給出靜止畫面,保證文字清晰、控制元件可用鍵盤操作。請寫原創程式碼,不要從付費或受限的元件庫複製。
更完整的提示詞,包含調參、無障礙和接入步驟。