Performance
PassFrame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.4 KB · Runtime 2.6 KB
massive-turtle-43MITRadio groupUiverse.io
A radio group built with plain HTML and CSS by aadium. 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 1.4 KB · Runtime 2.6 KB
Issues 0 · Screen reader: Pass
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.
<label class="container" id="left">
<input type="radio" name="my-radio-button">
<div class="selected" id="leftradio"></div>
</label>
<label class="container" id="middle">
<input type="radio" name="my-radio-button">
<div class="selected" id="middleradio"></div>
</label>
<label class="container" id="right">
<input type="radio" name="my-radio-button">
<div class="selected" id="rightradio"></div>
</label>/* From Uiverse.io by aadium - Tags: cyberpunk, radio, futuristic */
.container input[type="radio"] {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.container {
display: inline-block;
position: relative;
cursor: pointer;
font-size: 17px;
width: 5em;
height: 2.5em;
user-select: none;
border: none;
}
.selected {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#leftradio {
border-bottom-left-radius: 2.5em;
border-top-left-radius: 2.5em;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
border: 3px solid #78cce2;
background-color: transparent;
transition: 0.2s ease-in;
}
#rightradio {
border-bottom-right-radius: 2.5em;
border-top-right-radius: 2.5em;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border: 3px solid #defe47;
background-color: transparent;
transition: 0.2s linear;
}
#middleradio {
border: 3px solid #f887ff;
background-color: transparent;
transition: 0.2s linear;
}
.selected:after {
content: '';
position: absolute;
background-color: 78cce2;
width: 100%;
height: 90%;
transform: scale(0);
transition: 0.2s ease-out;
}
#leftradio:hover {
border-bottom-left-radius: 2.5em;
border-top-left-radius: 2.5em;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
border: 3px solid #78cce2;
background-color: #78cce2;
}
#leftradio::after {
top: 0%;
height: 100%;
border-bottom-left-radius: 2.5em;
border-top-left-radius: 2.5em;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
border: none;
background-color: #78cce2;
box-shadow: 0em 0em 4em 0.1em #78cce2;
}
#rightradio:hover {
border-bottom-right-radius: 2.5em;
border-top-right-radius: 2.5em;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border: 3px solid #defe47;
background-color: #defe47;
}
#rightradio::after {
left: -3%;
top: -1%;
border-bottom-right-radius: 2.5em;
border-top-right-radius: 2.5em;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border: 3px solid #defe47;
background-color: #defe47;
box-shadow: 0em 0em 4em 0.1em #defe47;
}
#middleradio:hover {
border: 3px solid #f887ff;
background-color: #f887ff;
}
#middleradio::after {
left: -3%;
top: -3%;
border: 3px solid #f887ff;
background-color: #f887ff;
box-shadow: 0em 0em 4em 0.1em #f887ff;
}
.container input[type="radio"]:checked ~ .selected:after {
transform: scale(1);
}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.
Left, middle and right segments form one rounded bar with cyan, pink and lime outlines, and the chosen part fills with its colour.
Mood or rating pickers, low-medium-high choices and playful settings.
Change #78cce2, #f887ff and #defe47, the 5em by 2.5em segment size and the 0.2s fill transition.
Build a "Three-colour segment radios" component in plain HTML, CSS and JavaScript (no framework). Left, middle and right segments form one rounded bar with cyan, pink and lime outlines, and the chosen part fills with its colour. Use it for: Mood or rating pickers, low-medium-high choices and playful settings. Expose these controls: Change #78cce2, #f887ff and #defe47, the 5em by 2.5em segment size and the 0.2s fill 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.