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

檢測於 2026年11月15日 · 資料來自自動腳本,不是手工填寫。
以實際尺寸顯示。
複製內容以授權聲明開頭,使用程式碼時請保留。
<input id="switch" type="checkbox">
<div class="app">
<div class="body">
<div class="phone">
<div class="menu">
<div class="time">4:20</div>
<div class="icons">
<div class="network"></div>
<div class="battery"></div>
</div>
</div>
<div class="content">
<div class="circle">
<div class="crescent"></div>
</div>
<label for="switch">
<div class="toggle"></div>
<div class="names">
<p class="light">Light</p>
<p class="dark">Dark</p>
</div>
</label>
</div>
</div>
</div>
</div>/* From Uiverse.io by Pradeepsaranbishnoi - Tags: animation, card, dark, theme, light */
/* GENERAL */
.credit {
position: fixed;
right: 2rem;
bottom: 2rem;
color: white;
}
.credit a {
color: inherit;
}
/* Main Circle */
.main-circle {
width: 40rem;
height: 40rem;
border-radius: 100%;
background: linear-gradient(40deg, #FF0080,#FF8C00 70%);
position: absolute;
z-index: 1;
left: 50%;
-webkit-transform: translate(-50%, -70%);
-ms-transform: translate(-50%, -70%);
transform: translate(-50%, -70%)
}
/* Phone */
.phone {
position: relative;
z-index: 2;
width: 18rem;
height: 17rem;
background-color: inherit;
-webkit-box-shadow: 0 4px 35px rgba(0,0,0,.1);
box-shadow: 0 4px 35px rgba(0,0,0,.1);
border-radius: 40px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
/* Top */
.menu {
/* background-color: blue; */
font-size: 80%;
opacity: .4;
padding: .8rem 1.8rem;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.icons {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-top: .5rem;
}
.battery {
width: .85rem;
height: .45rem;
background-color: black;
}
.network {
width: 0;
height: 0;
border-style: solid;
border-width: 0 6.8px 7.2px 6.8px;
border-color: transparent transparent black transparent;
-webkit-transform: rotate(135deg);
-ms-transform: rotate(135deg);
transform: rotate(135deg);
margin: .12rem .5rem;
}
/* Middle */
.content {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
margin: auto;
text-align: center;
width: 70%;
-webkit-transform: translateY(5%);
-ms-transform: translateY(5%);
transform: translateY(5%);
}
.circle {
position: relative;
border-radius: 100%;
width: 8rem;
height: 8rem;
background: linear-gradient(40deg, #FF0080,#FF8C00 70%);
margin: auto;
}
.crescent {
position: absolute;
border-radius: 100%;
right: 0;
width: 6rem;
height: 6rem;
background: white;
-webkit-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0);
-webkit-transform-origin: top right;
-ms-transform-origin: top right;
transform-origin: top right;
-webkit-transition: -webkit-transform .6s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: -webkit-transform .6s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: transform .6s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: transform .6s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform .6s cubic-bezier(0.645, 0.045, 0.355, 1);
}
label, .toggle {
height: 2.8rem;
border-radius: 100px;
}
label {
width: 100%;
background-color: rgba(0,0,0,.1);
border-radius: 100px;
position: relative;
margin: 1.8rem 0 4rem 0;
cursor: pointer;
}
.toggle {
position: absolute;
width: 50%;
background-color: #fff;
-webkit-box-shadow: 0 2px 15px rgba(0,0,0,.15);
box-shadow: 0 2px 15px rgba(0,0,0,.15);
-webkit-transition: -webkit-transform .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
transition: -webkit-transform .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
transition: transform .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
transition: transform .3s cubic-bezier(0.25, 0.46, 0.45, 0.94), -webkit-transform .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.names {
font-size: 90%;
font-weight: bolder;
color: black;
width: 65%;
margin-left: 17.5%;
margin-top: 6.5%;
position: absolute;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.dark {
opacity: .5;
}
.mark {
border-radius: 100px;
background-color: black;
}
.time {
color: black;
}
/* -------- Switch Styles ------------*/
[type="checkbox"] {
display: none;
}
/* Toggle */
[type="checkbox"]:checked + .app .toggle {
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
background-color: #34323D;
}
[type="checkbox"]:checked + .app .dark {
opacity: 1;
color: white;
}
[type="checkbox"]:checked + .app .light {
opacity: 1;
color: white;
}
/* App */
[type="checkbox"]:checked + .app .body {
background-color: #26242E;
color: white;
}
/* Circle */
[type="checkbox"]:checked + .app .crescent {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
background: #26242E;
}
[type="checkbox"]:checked + .app .circle {
background: linear-gradient(40deg, #8983F7, #A3DAFB 70%);
}
[type="checkbox"]:checked + .app .main-circle {
background: linear-gradient(40deg, #8983F7, #A3DAFB 70%);
}
[type="checkbox"]:checked + .time {
color: white;
}
[type="checkbox"]:checked + .app .body .phone .menu .time {
color: white;
}
[type="checkbox"]:checked + .app .body .phone .menu .icons .network {
border-color: transparent transparent white transparent;
}
[type="checkbox"]:checked + .app .body .phone .menu .icons .battery {
background-color: white;
}
[type="checkbox"]:checked + .app .body {
border-radius: 40px;
;
}
.menu {
/* background-color: blue; */
font-size: 80%;
opacity: .4;
padding: .8rem 1.8rem;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}控制項 · HTML · CSS · JS
直接改程式碼,再用控制項微調,預覽會隨輸入即時更新。

線上編輯每個元件,用控制項微調,下載完整原始碼,複製進階提示詞。
一次性 $49暫定價格
測試模式:不會真的扣款。
免費:預覽、複製按鈕和課程說明。
一部畫出來的手機帶狀態列和彎月,壓在粉到橙的大圓上,點開關就把場景切到夜晚。
應用落地頁、主題功能演示和產品展示。
改 #FF0080 到 #FF8C00 的圓形漸變、40rem 圓尺寸、手機顏色和開關過渡。
用純 HTML、CSS 和 JavaScript(不用框架)做一個「手機模型夜間模式卡」元件。一部畫出來的手機帶狀態列和彎月,壓在粉到橙的大圓上,點開關就把場景切到夜晚。 適用場景:應用落地頁、主題功能演示和產品展示。 開放這些可調項:改 #FF0080 到 #FF8C00 的圓形漸變、40rem 圓尺寸、手機顏色和開關過渡。 支援淺色和深色主題,遵守 prefers-reduced-motion 並給出靜止畫面,保證文字清晰、控制元件可用鍵盤操作。請寫原創程式碼,不要從付費或受限的元件庫複製。
更完整的提示詞,包含調參、無障礙和接入步驟。