性能
通过帧率: 平均 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 并给出静止画面,保证文字清晰、控件可用键盘操作。请写原创代码,不要从付费或受限的组件库复制。
更完整的提示词,包含调参、无障碍和接入步骤。