Radial or wheel-style menus are an excellent design solution for optimizing space in modern interfaces, especially on mobile devices. Inspired by Google's Material Design Floating Action Button (FAB) concept, these elements allow grouping multiple actions into a single focal point and expanding them in an elegant, animated way, without cluttering the interface with visible buttons all the time.
In this guide, we will explore how to create different styles of circular menus using exclusively CSS and HTML, with a minimal touch of JavaScript to handle click interactions. We will look at everything from minimalist designs to more advanced options with images cropped into circular sectors.
Fundamentals of a Circular Menu
The logic behind a wheel-style options menu is simple yet powerful. It is based on three phases:
- Initial state: All menu options are hidden and positioned directly underneath the central button (the "trigger"), stacked on top of each other with
opacity: 0or without anytransformapplied. - Activation: When clicking or hovering, we apply a CSS transition that moves each option to a specific coordinate using
transform: translate(x, y). - Animation: We use the
transitionproperty so that the movement is smooth, achieving that characteristic "fan" or "wheel" effect. A timing function likecubic-bezierallows fine-tuning the behavior and giving it a more natural bounce.

1. Radial Menu with Click Interaction
This first design is the most faithful to the original Material Design concept. The menu expands only when the user decides to interact with it, making it ideal for both desktop and touch devices.
The JavaScript: For this example, we use a simple script that adds or removes the .open class on the main container. The pattern is the same as always: listen for the click event on the trigger button and toggle the class with classList.toggle().
// Handler to open/close the menu
document.querySelectorAll('.toggle-btn').forEach(btn => {
btn.addEventListener('click', () => {
const parent = btn.closest('.filter-btn');
parent.classList.toggle('open');
});
});
// Close when selecting an option
document.querySelectorAll('.filter-btn a').forEach(link => {
link.addEventListener('click', () => {
link.closest('.filter-btn').classList.remove('open');
});
});The main CSS: Here we define the visual base of the button and its transitions. Pay attention to the use of cubic-bezier to give it a more organic bounce effect, and to the negative value in the second parameter (-0.55), which is precisely what generates that slight "overshoot" when expanding.
.filter-btn {
position: absolute;
width: 40px;
height: 40px;
transition: all 0.4s ease;
}
.filter-btn a {
position: absolute;
background: #DE5513;
border-radius: 50%;
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
color: #fff;
z-index: 1;
transition: all .4s cubic-bezier(.68, -0.55, .265, 1.55);
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
/* Positioning of options when opened */
.filter-btn.open a:nth-child(1) { transform: translate(0, -60px); }
.filter-btn.open a:nth-child(2) { transform: translate(-55px, -35px); }
.filter-btn.open a:nth-child(3) { transform: translate(55px, -35px); }As we can see, it is a fairly straightforward design: it defines the shape, color, and size of the button, in addition to the transitions and the final position of each option that makes up the menu. All the magic of the wheel expansion lies in the .filter-btn a selector combined with the .open class.
For a menu with more options (up to six elements) that forms a complete circle, the positioning CSS expands like this:

.filter-btn.open a:nth-child(1) {
transform: translate(0, -55px);
}
.filter-btn.open a:nth-child(2) {
transform: translate(-50px, -34px);
}
.filter-btn.open a:nth-child(3) {
transform: translate(50px, -34px);
}
.filter-btn.open a:nth-child(4) {
transform: translate(50px, 20px);
}
.filter-btn.open a:nth-child(5) {
transform: translate(-50px, 20px);
}
.filter-btn.open a:nth-child(6) {
transform: translate(0, 55px);
}
.filter-btn.open span.toggle-btn.ion-android-funnel {
background-color: #AC3D07;
}
.filter-btn.open .ion-android-funnel:before {
content: "\f2d7";
}The final result is as follows:
2. Variant with Expanding Background (::after Effect)
We can add an extra layer of sophistication using the ::after pseudo-element to create a circular background that expands behind the icons when the menu opens. This noticeably improves the readability of the options over complex or image backgrounds.

The key is to start the pseudo-element with transform: scale(0) and scale it to scale(1) when the container has the .open class:
.filter-btn::after {
content: '';
width: 170px;
height: 170px;
background-color: rgba(222, 85, 19, 0.9);
position: absolute;
top: -65px;
right: -65px;
border-radius: 50%;
transform: scale(0);
transition: transform 0.3s ease-in-out;
z-index: 0;
}
.filter-btn.open::after {
transform: scale(1);
}The final result is as follows:
3. Hover-Based Circular Menu (Without JavaScript)
If you are looking for a lighter solution for desktop applications, you can trigger the menu with the :hover pseudo-selector. This completely eliminates the need for JavaScript, although you should keep in mind that hover does not work naturally on touch devices, where the concept of "hovering the cursor" does not exist.

In this model, the menu is rotated 180 degrees by default and returns to its original position when hovering the pointer over it. The transition combines rotate with translateY and a change in opacity to achieve the expansion effect:
.menu ul {
transform: rotate(180deg) translateY(-2em);
transition: 1s all ease;
opacity: 0;
}
.menu:hover ul {
transform: rotate(0deg) translateY(-1em);
opacity: 1;
}4. Radial Menu with Images and Clipping
This is one of the most creative designs in the collection. Instead of simple icons, we use images that form a perfect circumference when expanded. Each link is a sector of the circle, clipped with border-radius and positioned with transform-origin so that it fits together with its neighbors.
.wrap a:nth-child(1) {
border-radius: 40vmin 0 0 0;
transform-origin: 110% 110%;
background-image: url('https://farm3.staticflickr.com/2827/10384422264_d9c7299146.jpg');
background-size: cover;
}Each list item has a height defined with height: 1.4em and remains invisible by default thanks to opacity: 0 and a z-index: -1 that removes it from the interactive flow:
.menu li {
/* ... */
height: 1.4em;
opacity: 0;
z-index: -1;
}When hovering over the circular menu, the opacity of all items is set to 1 to make them visible:
.menu:hover li {
opacity: 1;
}At the same time, the container's rotation is triggered so that it returns to its original position:
.menu:hover ul {
transform: rotate(0deg) translateY(-1em);
}The default state of the circular menu is a 180-degree rotation, which causes the options to "emerge" describing an arc as they reveal themselves:
.menu ul {
transform: rotate(180deg) translateY(-2em);
transition: 1s all;
}Finally, each item is absolutely positioned with an individual rotate so that each sector's image is properly aligned inside the circle:
.menu li:nth-of-type(1) {
transform: rotate(-90deg);
position: absolute;
left: -1.2em;
top: -4.2em;
}
.menu li:nth-of-type(2) {
transform: rotate(-45deg);
position: absolute;
left: 2em;
top: -3em;
}
.menu li:nth-of-type(3) {
position: absolute;
left: 3.4em;
top: 0.3em;
}
.menu li:nth-of-type(4) {
transform: rotate(45deg);
position: absolute;
left: 2em;
top: 3.7em;
}
.menu li:nth-of-type(5) {
transform: rotate(90deg);
position: absolute;
left: -1.2em;
top: 5em;
}5. Wheel-Style Menu with Images and Hover Event
The following example takes the previous concept one step further: it expands a set of images clipped into sectors that form a complete circumference when activated on hover.
The menu displays the fan of options when hovering the cursor over the visible section (a circle with the typical hamburger icon). The rest of the options remain hidden using the opacity: 0 property combined with transform: scale(0.2), making them invisible and removing them from the interaction area:
.wrap {
position: relative;
width: 80vmin;
height: 80vmin;
margin: 0 auto;
background: inherit;
transform: scale(0.2) translateZ(0px);
opacity: 0;
transition: transform .5s, opacity .5s;
}When hovering over the hamburger icon, the container scales up to its visible size and regains full opacity:
span:hover + .wrap,
.wrap:hover {
transform: scale(.8) translateZ(0px);
opacity: 1;
}Each image has its own border-radius and transform-origin adjusted to fit its corresponding sector. The staggered delay (transition-delay) on each element is what generates the progressive opening effect:
a:nth-child(1) {
border-radius: 40vmin 0 0 0;
transform-origin: 110% 110%;
transition: transform .4s .15s;
}
a:nth-child(1) div {
background-image: url('https://farm3.staticflickr.com/2827/10384422264_d9c7299146.jpg');
}
a:nth-child(2) {
border-radius: 0 40vmin 0 0;
left: 52.5%;
transform-origin: -10% 110%;
transition: transform .4s .2s;
}
a:nth-child(2) div {
background-image: url('https://farm7.staticflickr.com/6083/6055581292_d94c2d90e3.jpg');
}
a:nth-child(3) {
border-radius: 0 0 0 40vmin;
top: 52.5%;
transform-origin: 110% -10%;
transition: transform .4s .25s;
}As we can appreciate, the image is assigned to each sector via the :nth-child selector, a pseudo-class that we have already explored in detail in this post:
The nth-child pseudo-class in CSS
Finally, the top and left properties (along with transform-origin) take care of properly positioning each sector within the composite circle.
Modernization: CSS Variables and Accessibility
Using CSS Variables (custom properties)
Instead of manually calculating each translate(x, y), you can centralize the expansion distance in a CSS variable (--distancia). That way, changing the menu radius is as simple as modifying a single value:
.filter-btn {
--distancia: 80px;
}
.open a:nth-child(1) { transform: translateY(calc(-1 * var(--distancia))); }Accessibility (A11y)
It is not enough for the menu to look good; it must also be keyboard-operable and screen-reader friendly. Some key points:
- Use the
<button>tag for the main trigger instead of a<span>or<div>, as buttons are focusable by default. - Add the
aria-expanded="false"attribute to the trigger button and change it toaria-expanded="true"via JavaScript when the menu opens. - Ensure that the color contrast between the icon and the background is sufficient (minimum ratio of 4.5:1 according to WCAG 2.1 guidelines).
Conclusion
Creating a circular or wheel-style menu with CSS and HTML not only improves your site's aesthetics, but also delivers an interactive and smooth user experience. Whether you choose a click-based implementation with JavaScript or a pure CSS solution with :hover, the key lies in the clever use of transform, transition, and proper handling of absolute positioning. The result is a compact, visually appealing component that is easy to integrate into any web project.