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

檢測於 2026年11月15日 · 資料來自自動腳本,不是手工填寫。
以實際尺寸顯示。
複製內容以授權聲明開頭,使用程式碼時請保留。
<div class="container">
<button class="btn">Button</button>
</div>* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #181818;
}
div {
width: 200px;
height: 200px;
box-shadow: 16px 14px 20px #0000008c;
border-radius: 10px;
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
div::before {
content: "";
background-image: conic-gradient(#ff0052 20deg, transparent 120deg);
width: 150%;
height: 150%;
position: absolute;
animation: rotate 2s linear infinite;
}
div::after {
content: "Animation";
width: 190px;
height: 190px;
background: #101010;
position: absolute;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
color: #ff0052;
font-size: larger;
letter-spacing: 5px;
box-shadow: inset 20px 20px 20px #0000008c;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.btn {
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
width: 200px;
height: 50px;
background: #ff0052;
color: #fff;
font-size: 20px;
letter-spacing: 2px;
border-radius: 10px;
cursor: pointer;
transition: 0.5s;
}
.btn:hover {
background: #fff;
color: #ff0052;
}
.btn::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #fff;
z-index: -1;
transform: scale(0);
transition: 0.5s;
}
.btn:hover::before {
transform: scale(1);
}
.btn::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #ff0052;
z-index: -1;
transform: scale(0);
transition: 0.5s;
}
.btn-primary:hover::after {
transform: scale(1);
}
.btn-secondary {
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
width: 200px;
height: 50px;
background: #fff;
color: #ff0052;
font-size: 20px;
letter-spacing: 2px;
border-radius: 10px;
cursor: pointer;
transition: 0.5s;
}
.btn-secondary:hover {
background: #ff0052;
color: #fff;
}
.btn-secondary::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #ff0052;
z-index: -1;
transform: scale(0);
transition: 0.5s;
}
.btn-secondary:hover::before {
transform: scale(1);
}
.btn-secondary::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #fff;
z-index: -1;
transform: scale(0);
transition: 0.5s;
}
.btn-secondary:hover::after {
transform: scale(1);
}
.btn-tertiary {
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
width: 200px;
height: 50px;
background: #ff0052;
color: #fff;
font-size: 20px;
letter-spacing: 2px;
border-radius: 10px;
cursor: pointer;
transition: 0.5s;
}
.btn-tertiary:hover {
background: #fff;
color: #ff0052;
}
.btn-tertiary::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #fff;
z-index: -1;
transform: scale(0);
transition: 0.5s;
}
.btn-tertiary:hover::before {
transform: scale(1);
}
.btn-tertiary::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #ff0052;
z-index: -1;
transform: scale(0);
transition: 0.5s;
}
.btn-tertiary:hover::after {
transform: scale(1);
}
.btn-quaternary {
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
width: 200px;
height: 50px;
background: #fff;
color: #ff0052;
font-size: 20px;
letter-spacing: 2px;
border-radius: 10px;
cursor: pointer;
transition: 0.5s;
}
.btn-quaternary:hover {
background: #ff0052;
color: #fff;
}
.btn-quaternary::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #ff0052;
z-index: -1;
transform: scale(0);
transition: 0.5s;
}
.btn-quaternary:hover::before {
transform: scale(1);
}
.btn-quaternary::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #fff;
z-index: -1;
transform: scale(0);
transition: 0.5s;
}
.btn-quaternary:hover::after {
transform: scale(1);
}
.btn-quinary {
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
width: 200px;
height: 50px;
background: #ff0052;
color: #fff;
font-size: 20px;
letter-spacing: 2px;
border-radius: 10px;
cursor: pointer;
transition: 0.5s;
}
.btn-quinary:hover {
background: #fff;
color: #ff0052;
}
.btn-quinary::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #fff;
z-index: -1;
transform: scale(0);
transition: 0.5s;
}控制項 · HTML · CSS · JS
直接改程式碼,再用控制項微調,預覽會隨輸入即時更新。

線上編輯每個元件,用控制項微調,下載完整原始碼,複製進階提示詞。
一次性 $49暫定價格
測試模式:不會真的扣款。
免費:預覽、複製按鈕和課程說明。
一道紅色圓錐漸變每 2 秒在深色方塊後旋轉一圈,一條發光的線沿按鈕邊框奔跑。
未來感落地頁、遊戲選單和科技演示。
改 #ff0052 圓錐色及 20deg、120deg 色標、2s 旋轉、200px 尺寸和 10px 圓角。
用純 HTML、CSS 和 JavaScript(不用框架)做一個「旋轉圓錐光按鈕」元件。一道紅色圓錐漸變每 2 秒在深色方塊後旋轉一圈,一條發光的線沿按鈕邊框奔跑。 適用場景:未來感落地頁、遊戲選單和科技演示。 開放這些可調項:改 #ff0052 圓錐色及 20deg、120deg 色標、2s 旋轉、200px 尺寸和 10px 圓角。 支援淺色和深色主題,遵守 prefers-reduced-motion 並給出靜止畫面,保證文字清晰、控制元件可用鍵盤操作。請寫原創程式碼,不要從付費或受限的元件庫複製。
更完整的提示詞,包含調參、無障礙和接入步驟。