效能
通過幀率: 平均 60 fps,p5 59.5 · 長任務: 0 個,共 0 毫秒,最長 0 毫秒 · 原始碼 gzip 2.2 KB · 執行時 4.8 KB
lucky-bobcat-25MIT單選組Uiverse.io
andrew-demchenk0 用純 HTML 和 CSS 做的單選組。依 MIT 授權從 Uiverse.io 收錄,此處為即時預覽。
品質報告
等級和分數來自建置或測試時跑過的自動檢查。沒跑過的項目會標成「未檢測」,不會填假資料。
幀率: 平均 60 fps,p5 59.5 · 長任務: 0 個,共 0 毫秒,最長 0 毫秒 · 原始碼 gzip 2.2 KB · 執行時 4.8 KB
問題 0 · 讀屏: 通過
已回應減弱動效
無溢出
幀率和長任務是在無介面的 Chromium 裡用軟體 WebGL 測的,只適合在本站元件之間比較,不代表實機表現。
沒有 axe-core 違規。

檢測於 2026年11月15日 · 資料來自自動腳本,不是手工填寫。
以實際尺寸顯示。
複製內容以授權聲明開頭,使用程式碼時請保留。
<div class="container">
<div class="radio-wrapper">
<input class="input" name="btn" id="value-1" type="radio">
<div class="btn">
<span aria-hidden="">_</span>Cyber
<span class="btn__glitch" aria-hidden="">_Cyber🦾</span>
<label class="number">r1</label>
</div>
</div>
<div class="radio-wrapper">
<input class="input" name="btn" id="value-2" checked="true" type="radio">
<div class="btn">
_Radio<span aria-hidden="">_</span>
<span class="btn__glitch" aria-hidden="">_R_a_d_i_o_</span>
<label class="number">r2</label>
</div>
</div>
<div class="radio-wrapper">
<input class="input" name="btn" id="value-3" type="radio">
<div class="btn">
Buttons<span aria-hidden=""></span>
<span class="btn__glitch" aria-hidden="">Buttons_</span>
<label class="number">r3</label>
</div>
</div>
</div>/* From Uiverse.io by andrew-demchenk0 - Tags: cyberpunk, neon, radio, radio, neon */
.container {
display: flex;
flex-direction: row;
}
.radio-wrapper {
position: relative;
height: 38px;
width: 84px;
margin: 3px;
}
.radio-wrapper .input {
position: absolute;
height: 100%;
width: 100%;
margin: 0;
cursor: pointer;
z-index: 10;
opacity: 0;
}
.btn {
--primary: #ff184c;
--shadow-primary: #fded00;
--color: white;
--font-size: 9px;
--shadow-primary-hue: 180;
--shadow-secondary-hue: 60;
--shadow-secondary: hsl(var(--shadow-secondary-hue), 90%, 60%);
--clip: polygon(11% 0, 95% 0, 100% 25%, 90% 90%, 95% 90%, 85% 90%, 85% 100%, 7% 100%, 0 80%);
--border: 5px;
--shimmy-distance: 5;
--clip-one: polygon(0 2%, 100% 2%, 100% 95%, 95% 95%, 95% 90%, 85% 90%, 85% 95%, 8% 95%, 0 70%);
--clip-two: polygon(0 78%, 100% 78%, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%);
--clip-three: polygon(0 44%, 100% 44%, 100% 54%, 95% 54%, 95% 54%, 85% 54%, 85% 54%, 8% 54%, 0 54%);
--clip-four: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
--clip-five: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
--clip-six: polygon(0 40%, 100% 40%, 100% 85%, 95% 85%, 95% 85%, 85% 85%, 85% 85%, 8% 85%, 0 70%);
--clip-seven: polygon(0 63%, 100% 63%, 100% 80%, 95% 80%, 95% 80%, 85% 80%, 85% 80%, 8% 80%, 0 70%);
color: var(--color);
text-transform: uppercase;
font-size: var(--font-size);
letter-spacing: 3px;
position: relative;
font-weight: 900;
width: 100%;
height: 100%;
line-height: 38px;
text-align: center;
transition: background 0.2s, 0.3s;
}
.input:checked + .btn {
--primary: #8B00FF;
--shadow-primary: #00e572;
}
.input:hover + .btn {
--primary: #cc133c;
--font-size: 11px;
}
.btn:after, .btn:before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
clip-path: var(--clip);
z-index: -1;
}
.btn:before {
background: var(--shadow-primary);
transform: translate(var(--border), 0);
}
.btn:after {
background: var(--primary);
}
.btn__tag {
position: absolute;
padding: 1px 4px;
letter-spacing: 1px;
line-height: 1;
bottom: -5%;
right: 5%;
font-weight: normal;
color: hsl(0, 0%, 0%);
font-size: var(--label-size);
}
.btn__glitch {
position: absolute;
top: calc(var(--border) * -1);
left: calc(var(--border) * -1);
right: calc(var(--border) * -1);
bottom: calc(var(--border) * -1);
background: var(--shadow-primary);
text-shadow: 2px 2px var(--shadow-primary), -2px -2px var(--shadow-secondary);
clip-path: var(--clip);
animation: glitch 2s infinite;
display: none;
}
.input:hover + .btn .btn__glitch {
display: block;
}
.input:checked + .btn .btn__glitch {
display: block;
animation: glitch 5s infinite;
}
.btn__glitch:before {
content: '';
position: absolute;
top: calc(var(--border) * 1);
right: calc(var(--border) * 1);
bottom: calc(var(--border) * 1);
left: calc(var(--border) * 1);
clip-path: var(--clip);
background: var(--primary);
z-index: -1;
}
@keyframes glitch {
0% {
clip-path: var(--clip-one);
}
2%, 8% {
clip-path: var(--clip-two);
transform: translate(calc(var(--shimmy-distance) * -1%), 0);
}
6% {
clip-path: var(--clip-two);
transform: translate(calc(var(--shimmy-distance) * 1%), 0);
}
9% {
clip-path: var(--clip-two);
transform: translate(0, 0);
}
10% {
clip-path: var(--clip-three);
transform: translate(calc(var(--shimmy-distance) * 1%), 0);
}
13% {
clip-path: var(--clip-three);
transform: translate(0, 0);
}
14%, 21% {
clip-path: var(--clip-four);
transform: translate(calc(var(--shimmy-distance) * 1%), 0);
}
25% {
clip-path: var(--clip-five);
transform: translate(calc(var(--shimmy-distance) * 1%), 0);
}
30% {
clip-path: var(--clip-five);
transform: translate(calc(var(--shimmy-distance) * -1%), 0);
}
35%, 45% {
clip-path: var(--clip-six);
transform: translate(calc(var(--shimmy-distance) * -1%));
}
40% {
clip-path: var(--clip-six);
transform: translate(calc(var(--shimmy-distance) * 1%));
}
50% {
clip-path: var(--clip-six);
transform: translate(0, 0);
}
55% {
clip-path: var(--clip-seven);
transform: translate(calc(var(--shimmy-distance) * 1%), 0);
}
60% {
clip-path: var(--clip-seven);
transform: translate(0, 0);
}
31%, 61%, 100% {
clip-path: var(--clip-four);
}
}
.number {
background: var(--shadow-primary);
color: #323232;
font-size: 5.5px;
font-weight: 700;
letter-spacing: 1px;
position: absolute;
width: 15px;
height: 6px;
top: 0;
left: 81%;
line-height: 6.2px;
}控制項 · HTML · CSS · JS
直接改程式碼,再用控制項微調,預覽會隨輸入即時更新。

線上編輯每個元件,用控制項微調,下載完整原始碼,複製進階提示詞。
一次性 $49暫定價格
測試模式:不會真的扣款。
免費:預覽、複製按鈕和課程說明。
帶下劃線和 r1、r2 標號的小方塊,選中時會故障閃動,像賽博朋克遊戲裡的選單項。
遊戲選單、科幻主題和駭客風設定。
改 --primary、84px × 38px 方塊尺寸、glitch 動畫和 3px 間距。
用純 HTML、CSS 和 JavaScript(不用框架)做一個「賽博故障單選按鈕」元件。帶下劃線和 r1、r2 標號的小方塊,選中時會故障閃動,像賽博朋克遊戲裡的選單項。 適用場景:遊戲選單、科幻主題和駭客風設定。 開放這些可調項:改 --primary、84px × 38px 方塊尺寸、glitch 動畫和 3px 間距。 支援淺色和深色主題,遵守 prefers-reduced-motion 並給出靜止畫面,保證文字清晰、控制元件可用鍵盤操作。請寫原創程式碼,不要從付費或受限的元件庫複製。
更完整的提示詞,包含調參、無障礙和接入步驟。