Performance
PassFrame rate: 60 fps average, p5 59.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.5 KB · Runtime 782 B
gentle-parrot-87MITToggleUiverse.io
A toggle built with plain HTML and CSS by vinodjangid07. 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.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.5 KB · Runtime 782 B
Issues 0 · 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.
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.
<input type="checkbox" id="checkbox" />
<label for="checkbox" class="switch">
Start
<svg
class="slider"
viewBox="0 0 512 512"
height="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V256c0 17.7 14.3 32 32 32s32-14.3 32-32V32zM143.5 120.6c13.6-11.3 15.4-31.5 4.1-45.1s-31.5-15.4-45.1-4.1C49.7 115.4 16 181.8 16 256c0 132.5 107.5 240 240 240s240-107.5 240-240c0-74.2-33.8-140.6-86.6-184.6c-13.6-11.3-33.8-9.4-45.1 4.1s-9.4 33.8 4.1 45.1c38.9 32.3 63.5 81 63.5 135.4c0 97.2-78.8 176-176 176s-176-78.8-176-176c0-54.4 24.7-103.1 63.5-135.4z"
></path>
</svg>
</label>/* From Uiverse.io by vinodjangid07 - Tags: active, switch, toggle, toggle switch */
#checkbox {
display: none;
}
.switch {
position: relative;
width: fit-content;
padding: 10px 20px;
background-color: rgb(46, 46, 46);
border-radius: 50px;
z-index: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
color: white;
font-size: 0.9em;
font-weight: 600;
transition: all 0.3s;
}
.switch svg path {
fill: white;
}
#checkbox:checked + .switch {
background-color: rgb(174, 0, 255);
box-shadow: 0px 0px 40px rgba(174, 0, 255, 0.438);
}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 dark rounded Start button turns vivid purple with a soft 40px glow when switched on, so the active state can be seen from across the screen.
Start or stop controls, live mode and focus timers.
Change the rgb(46,46,46) off colour, the rgb(174,0,255) on colour, the 40px glow and the 0.3s transition.
Build a "Start button toggle" component in plain HTML, CSS and JavaScript (no framework). A dark rounded Start button turns vivid purple with a soft 40px glow when switched on, so the active state can be seen from across the screen. Use it for: Start or stop controls, live mode and focus timers. Expose these controls: Change the rgb(46,46,46) off colour, the rgb(174,0,255) on colour, the 40px glow and the 0.3s transition. 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.