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

檢測於 2026年11月15日 · 資料來自自動腳本,不是手工填寫。
以實際尺寸顯示。
複製內容以授權聲明開頭,使用程式碼時請保留。
<form class="form">
<button>
<svg width="17" height="16" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="search">
<path d="M7.667 12.667A5.333 5.333 0 107.667 2a5.333 5.333 0 000 10.667zM14.334 14l-2.9-2.9" stroke="currentColor" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</button>
<input class="input" placeholder="Type your text" required="" type="text">
<button class="reset" type="reset">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</button>
</form>/* From Uiverse.io by satyamchaudharydev - Tags: input */
/* From uiverse.io by @satyamchaudharydev */
/* removing default style of button */
.form button {
border: none;
background: none;
color: #8b8ba7;
}
/* styling of whole input container */
.form {
--timing: 0.3s;
--width-of-input: 200px;
--height-of-input: 40px;
--border-height: 2px;
--input-bg: #fff;
--border-color: #2f2ee9;
--border-radius: 30px;
--after-border-radius: 1px;
position: relative;
width: var(--width-of-input);
height: var(--height-of-input);
display: flex;
align-items: center;
padding-inline: 0.8em;
border-radius: var(--border-radius);
transition: border-radius 0.5s ease;
background: var(--input-bg,#fff);
}
/* styling of Input */
.input {
font-size: 0.9rem;
background-color: transparent;
width: 100%;
height: 100%;
padding-inline: 0.5em;
padding-block: 0.7em;
border: none;
}
/* styling of animated border */
.form:before {
content: "";
position: absolute;
background: var(--border-color);
transform: scaleX(0);
transform-origin: center;
width: 100%;
height: var(--border-height);
left: 0;
bottom: 0;
border-radius: 1px;
transition: transform var(--timing) ease;
}
/* Hover on Input */
.form:focus-within {
border-radius: var(--after-border-radius);
}
input:focus {
outline: none;
}
/* here is code of animated border */
.form:focus-within:before {
transform: scale(1);
}
/* styling of close button */
/* == you can click the close button to remove text == */
.reset {
border: none;
background: none;
opacity: 0;
visibility: hidden;
}
/* close button shown when typing */
input:not(:placeholder-shown) ~ .reset {
opacity: 1;
visibility: visible;
}
/* sizing svg icons */
.form svg {
width: 17px;
margin-top: 3px;
}控制項 · HTML · CSS · JS
直接改程式碼,再用控制項微調,預覽會隨輸入即時更新。

線上編輯每個元件,用控制項微調,下載完整原始碼,複製進階提示詞。
一次性 $49暫定價格
測試模式:不會真的扣款。
免費:預覽、複製按鈕和課程說明。
圓角輸入框聚焦時畫出一條藍色下劃線並向兩端伸展,左邊有搜尋圖示,右邊有清空按鈕。
導航欄、篩選和列表裡的搜尋。
設定 --width-of-input(200px)、--height-of-input、--border-color(#2f2ee9)、--border-height、--border-radius 和 --timing(0.3s)。
用純 HTML、CSS 和 JavaScript(不用框架)做一個「下劃線伸展搜尋框」元件。圓角輸入框聚焦時畫出一條藍色下劃線並向兩端伸展,左邊有搜尋圖示,右邊有清空按鈕。 適用場景:導航欄、篩選和列表裡的搜尋。 開放這些可調項:設定 --width-of-input(200px)、--height-of-input、--border-color(#2f2ee9)、--border-height、--border-radius 和 --timing(0.3s)。 支援淺色和深色主題,遵守 prefers-reduced-motion 並給出靜止畫面,保證文字清晰、控制元件可用鍵盤操作。請寫原創程式碼,不要從付費或受限的元件庫複製。
更完整的提示詞,包含調參、無障礙和接入步驟。