Performance
PassFrame rate: 60 fps average, p5 59.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 4.9 KB · Runtime 7.7 KB
buttonApache-2.0ButtonFuturistic CSS Animations
A button built with plain HTML and CSS by DeepankRx. Collected from Futuristic CSS Animations under the Apache-2.0 licence and shown here live.
Quality report
The grade and score come from automated checks run at build or test time. If a check did not run, it is marked Not tested — numbers are never invented.
Frame rate: 60 fps average, p5 59.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 4.9 KB · Runtime 7.7 KB
Issues 0 · Screen reader: Pass
Honours reduced motion
No overflow
Frame rate and long-task figures were measured in headless Chromium with software WebGL. They are only comparable between components on this site, and do not represent real devices.
No axe-core violations.

Checked Nov 15, 2026 · Figures come from an automated script, not from hand-written samples.
Shown at real size.
The copy starts with the licence notice. Keep it when you use the code.
<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;
}Controls · HTML · CSS · JS
Edit the code and tune it with the controls. The preview updates as you type.

This component runs from a bundled build, so its script is read-only here. Edit the HTML and CSS; the full source is in the Code tab.
Edit every component live, tune it with controls, download the full source and copy the advanced prompts.
$49 one-timePlaceholder price
Test mode: no real payment is taken.
Free: preview, copy buttons and the lesson notes.
A red conic gradient spins behind a dark square every 2s, so a glowing line runs around the frame of the button.
Futuristic landing pages, game menus and tech demos.
Change the #ff0052 conic colour and its 20deg and 120deg stops, the 2s rotate, the 200px size and the 10px radius.
Build a "Spinning conic light button" component in plain HTML, CSS and JavaScript (no framework). A red conic gradient spins behind a dark square every 2s, so a glowing line runs around the frame of the button. Use it for: Futuristic landing pages, game menus and tech demos. Expose these controls: Change the #ff0052 conic colour and its 20deg and 120deg stops, the 2s rotate, the 200px size and the 10px radius. Support light and dark themes, respect prefers-reduced-motion with a still frame, keep text readable and controls keyboard accessible. Write original code; do not copy from paid or restricted component libraries.
A longer prompt with tuning, accessibility and integration steps.