效能
通過幀率: 平均 60 fps,p5 59.5 · 長任務: 0 個,共 0 毫秒,最長 0 毫秒 · 原始碼 gzip 1.5 KB · 執行時 1.2 KB
white-sloth-20MIT核取方塊Uiverse.io
barisdogansutcu 用純 HTML 和 CSS 做的核取方塊。依 MIT 授權從 Uiverse.io 收錄,此處為即時預覽。
品質報告
等級和分數來自建置或測試時跑過的自動檢查。沒跑過的項目會標成「未檢測」,不會填假資料。
幀率: 平均 60 fps,p5 59.5 · 長任務: 0 個,共 0 毫秒,最長 0 毫秒 · 原始碼 gzip 1.5 KB · 執行時 1.2 KB
問題 0 · 讀屏: 通過
沒有持續動效
無溢出
幀率和長任務是在無介面的 Chromium 裡用軟體 WebGL 測的,只適合在本站元件之間比較,不代表實機表現。
不適用:靜止時沒有可見動畫;由懸停觸發的動畫沒有測試。
沒有 axe-core 違規。

檢測於 2026年11月15日 · 資料來自自動腳本,不是手工填寫。
以實際尺寸顯示。
複製內容以授權聲明開頭,使用程式碼時請保留。
<div class="volume">
<input type="checkbox" class="volume-input" />
<div class="volume-icon">
<svg
viewBox="0 0 24 24"
width="24"
height="24"
stroke="currentColor"
stroke-width="2"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
class="volume-svg"
>
<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>
<path
d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"
></path>
</svg>
</div>
</div>/* From Uiverse.io by barisdogansutcu - Tags: button, checkbox, volume */
.volume {
width: 60px;
height: 60px;
border-radius: 100%;
background-color: rgb(205, 191, 247);
overflow: hidden;
position: relative;
}
.volume-icon {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.5s ease;
overflow: hidden;
position: relative;
}
.volume-input {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
z-index: 999;
}
.volume-icon:before {
content: "";
display: flex;
width: 0px;
height: 0px;
border-radius: 100%;
transition: all 0.2s ease;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background-color: rgb(32, 33, 36);
}
.volume-input:checked + .volume-icon:before {
width: calc(100% + 4px);
height: calc(100% + 4px);
}
.volume-svg {
z-index: 2;
color: rgb(32, 33, 36);
height: 30px;
width: 30px;
}
.volume-input:checked + .volume-icon svg {
color: rgb(255, 255, 255);
}控制項 · HTML · CSS · JS
直接改程式碼,再用控制項微調,預覽會隨輸入即時更新。

線上編輯每個元件,用控制項微調,下載完整原始碼,複製進階提示詞。
一次性 $49暫定價格
測試模式:不會真的扣款。
免費:預覽、複製按鈕和課程說明。
勾選時一個深色圓從中心長大,鋪滿淡紫色按鈕,用來表示靜音很有滿足感。
影片播放器、環境音開關和通知靜音按鈕。
調 60px 尺寸、rgb(205,191,247) 淡紫色、深色填充和 0.2s 的放大過渡。
用純 HTML、CSS 和 JavaScript(不用框架)做一個「音量靜音核取方塊」元件。勾選時一個深色圓從中心長大,鋪滿淡紫色按鈕,用來表示靜音很有滿足感。 適用場景:影片播放器、環境音開關和通知靜音按鈕。 開放這些可調項:調 60px 尺寸、rgb(205,191,247) 淡紫色、深色填充和 0.2s 的放大過渡。 支援淺色和深色主題,遵守 prefers-reduced-motion 並給出靜止畫面,保證文字清晰、控制元件可用鍵盤操作。請寫原創程式碼,不要從付費或受限的元件庫複製。
更完整的提示詞,包含調參、無障礙和接入步驟。