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

檢測於 2026年11月15日 · 資料來自自動腳本,不是手工填寫。
以實際尺寸顯示。
複製內容以授權聲明開頭,使用程式碼時請保留。
<div class="input-container">
<input placeholder="Search something..." class="input" name="text" type="text">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="icon"><g stroke-width="0" id="SVGRepo_bgCarrier"></g><g stroke-linejoin="round" stroke-linecap="round" id="SVGRepo_tracerCarrier"></g><g id="SVGRepo_iconCarrier"> <rect fill="white"></rect> <path d="M7.25007 2.38782C8.54878 2.0992 10.1243 2 12 2C13.8757 2 15.4512 2.0992 16.7499 2.38782C18.06 2.67897 19.1488 3.176 19.9864 4.01358C20.824 4.85116 21.321 5.94002 21.6122 7.25007C21.9008 8.54878 22 10.1243 22 12C22 13.8757 21.9008 15.4512 21.6122 16.7499C21.321 18.06 20.824 19.1488 19.9864 19.9864C19.1488 20.824 18.06 21.321 16.7499 21.6122C15.4512 21.9008 13.8757 22 12 22C10.1243 22 8.54878 21.9008 7.25007 21.6122C5.94002 21.321 4.85116 20.824 4.01358 19.9864C3.176 19.1488 2.67897 18.06 2.38782 16.7499C2.0992 15.4512 2 13.8757 2 12C2 10.1243 2.0992 8.54878 2.38782 7.25007C2.67897 5.94002 3.176 4.85116 4.01358 4.01358C4.85116 3.176 5.94002 2.67897 7.25007 2.38782ZM9 11.5C9 10.1193 10.1193 9 11.5 9C12.8807 9 14 10.1193 14 11.5C14 12.8807 12.8807 14 11.5 14C10.1193 14 9 12.8807 9 11.5ZM11.5 7C9.01472 7 7 9.01472 7 11.5C7 13.9853 9.01472 16 11.5 16C12.3805 16 13.202 15.7471 13.8957 15.31L15.2929 16.7071C15.6834 17.0976 16.3166 17.0976 16.7071 16.7071C17.0976 16.3166 17.0976 15.6834 16.7071 15.2929L15.31 13.8957C15.7471 13.202 16 12.3805 16 11.5C16 9.01472 13.9853 7 11.5 7Z" clip-rule="evenodd" fill-rule="evenodd"></path> </g></svg>
</div>/* From Uiverse.io by Yaya12085 - Tags: input, search */
.input-container {
position: relative;
display: flex;
align-items: center;
}
.input {
width: 40px;
height: 40px;
border-radius: 10px;
border: none;
outline: none;
padding: 18px 16px;
background-color: transparent;
cursor: pointer;
transition: all .5s ease-in-out;
}
.input::placeholder {
color: transparent;
}
.input:focus::placeholder {
color: rgb(131, 128, 128);
}
.input:focus,.input:not(:placeholder-shown) {
background-color: #fff;
border: 1px solid rgb(98, 0, 255);
width: 290px;
cursor: none;
padding: 18px 16px 18px 40px;
}
.icon {
position: absolute;
left: 0;
top: 0;
height: 40px;
width: 40px;
background-color: #fff;
border-radius: 10px;
z-index: -1;
fill: rgb(98, 0, 255);
border: 1px solid rgb(98, 0, 255);
}
.input:hover + .icon {
transform: rotate(360deg);
transition: .2s ease-in-out;
}
.input:focus + .icon,.input:not(:placeholder-shown) + .icon {
z-index: 0;
background-color: transparent;
border: none;
}控制項 · HTML · CSS · JS
直接改程式碼,再用控制項微調,預覽會隨輸入即時更新。

線上編輯每個元件,用控制項微調,下載完整原始碼,複製進階提示詞。
一次性 $49暫定價格
測試模式:不會真的扣款。
免費:預覽、複製按鈕和課程說明。
平時只顯示一個 40px 的搜尋圖示,點選後 0.5 秒展開成 290px 寬、帶紫色邊框的白色輸入框。
搜尋要儘量不佔地方的頁頭和工具欄。
改 40px 和 290px 兩個寬度、rgb(98,0,255) 邊框、10px 圓角和 0.5s ease-in-out。
用純 HTML、CSS 和 JavaScript(不用框架)做一個「圖示展開搜尋框」元件。平時只顯示一個 40px 的搜尋圖示,點選後 0.5 秒展開成 290px 寬、帶紫色邊框的白色輸入框。 適用場景:搜尋要儘量不佔地方的頁頭和工具欄。 開放這些可調項:改 40px 和 290px 兩個寬度、rgb(98,0,255) 邊框、10px 圓角和 0.5s ease-in-out。 支援淺色和深色主題,遵守 prefers-reduced-motion 並給出靜止畫面,保證文字清晰、控制元件可用鍵盤操作。請寫原創程式碼,不要從付費或受限的元件庫複製。
更完整的提示詞,包含調參、無障礙和接入步驟。