Performance
PassFrame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 2.2 KB · Runtime 1.3 KB
swift-mayfly-12MITButtonUiverse.io
A button built with plain HTML and CSS by Yaya12085. Collected from Uiverse.io under the MIT 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.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 2.2 KB · Runtime 1.3 KB
Issues 1 · Screen reader: Needs attention
No continuous 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.
Not applicable: no visible animation at rest. Hover-triggered animation was not tested.

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.
<button class="btn">
<span>
Submit
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><g stroke-width="0" id="SVGRepo_bgCarrier"></g><g stroke-linejoin="round" stroke-linecap="round" id="SVGRepo_tracerCarrier"></g><g id="SVGRepo_iconCarrier"> <path fill="#ffffff" d="M20.33 3.66996C20.1408 3.48213 19.9035 3.35008 19.6442 3.28833C19.3849 3.22659 19.1135 3.23753 18.86 3.31996L4.23 8.19996C3.95867 8.28593 3.71891 8.45039 3.54099 8.67255C3.36307 8.89471 3.25498 9.16462 3.23037 9.44818C3.20576 9.73174 3.26573 10.0162 3.40271 10.2657C3.5397 10.5152 3.74754 10.7185 4 10.85L10.07 13.85L13.07 19.94C13.1906 20.1783 13.3751 20.3785 13.6029 20.518C13.8307 20.6575 14.0929 20.7309 14.36 20.73H14.46C14.7461 20.7089 15.0192 20.6023 15.2439 20.4239C15.4686 20.2456 15.6345 20.0038 15.72 19.73L20.67 5.13996C20.7584 4.88789 20.7734 4.6159 20.7132 4.35565C20.653 4.09541 20.5201 3.85762 20.33 3.66996ZM4.85 9.57996L17.62 5.31996L10.53 12.41L4.85 9.57996ZM14.43 19.15L11.59 13.47L18.68 6.37996L14.43 19.15Z"></path> </g></svg>
</span>
<span>
Sure ?
</span>
<span>
Done !
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><g stroke-width="0" id="SVGRepo_bgCarrier"></g><g stroke-linejoin="round" stroke-linecap="round" id="SVGRepo_tracerCarrier"></g><g id="SVGRepo_iconCarrier"> <path stroke-linecap="round" stroke-width="2" stroke="#ffffff" d="M8.00011 13L12.2278 16.3821C12.6557 16.7245 13.2794 16.6586 13.6264 16.2345L22.0001 6"></path> <path fill="#ffffff" d="M11.1892 12.2368L15.774 6.63327C16.1237 6.20582 16.0607 5.5758 15.6332 5.22607C15.2058 4.87635 14.5758 4.93935 14.226 5.36679L9.65273 10.9564L11.1892 12.2368ZM8.02292 16.1068L6.48641 14.8263L5.83309 15.6248L2.6 13.2C2.15817 12.8687 1.53137 12.9582 1.2 13.4C0.868627 13.8419 0.95817 14.4687 1.4 14.8L4.63309 17.2248C5.49047 17.8679 6.70234 17.7208 7.381 16.8913L8.02292 16.1068Z" clip-rule="evenodd" fill-rule="evenodd"></path> </g></svg>
</span>
</button>/* From Uiverse.io by Yaya12085 - Tags: button */
.btn {
position: relative;
outline: 0;
border: 1px solid transparent;
background-color: #488aec;
color: #ffffff;
font-size: 0.75rem;
line-height: 1rem;
font-weight: 700;
text-transform: uppercase;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
vertical-align: middle;
overflow: hidden;
box-shadow: 0 4px 6px -1px #488aec31, 0 2px 4px -1px #488aec17;
}
.btn span {
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
transition: all .4s ease;
}
button svg {
width: 1.25rem;
height: 1.25rem;
}
.btn span:nth-child(2),.btn span:nth-child(3) {
position: absolute;
top: 40px;
color: #fff;
}
.btn span:nth-child(2) {
background-color: #488aec;
}
.btn span:nth-child(3) {
background-color: #488aec;
}
.btn:hover {
box-shadow: 0 10px 15px -3px #488aec4f, 0 4px 6px -2px #488aec17;
}
.btn:hover span:nth-child(2), .btn:focus span:nth-child(3) {
top: 0;
}
.btn:focus {
box-shadow: none;
}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.
Three stacked labels, Submit, Sure? and Done!, slide up one after another, so a single button walks you through confirming.
Destructive or important submits that deserve a confirmation step.
Change the #488aec blue, the 0.75rem uppercase label, the 0.5rem radius and the slide timing between the three spans.
Build a "Submit, sure, done button" component in plain HTML, CSS and JavaScript (no framework). Three stacked labels, Submit, Sure? and Done!, slide up one after another, so a single button walks you through confirming. Use it for: Destructive or important submits that deserve a confirmation step. Expose these controls: Change the #488aec blue, the 0.75rem uppercase label, the 0.5rem radius and the slide timing between the three spans. 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.