# Circle Reveal Menu

> A round hamburger button whose menu panel grows out of it in an expanding circle, made with clip-path.

- Category: [CSS Navigation](https://copy-css.com/category/navigation)
- Tags: hamburger, clip-path, details, expand, mobile menu
- Live preview: https://copy-css.com/snippets/circle-reveal-menu
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<details class="circle-menu">
  <summary aria-label="Menu"><span></span></summary>
  <nav aria-label="Main">
    <a href="#">Home</a>
    <a href="#">Projects</a>
    <a href="#">About</a>
    <a href="#">Contact</a>
  </nav>
</details>
```

## CSS

```css
.circle-menu {
  position: relative;
  display: inline-block;
  font: 600 15px system-ui, sans-serif;
}

.circle-menu summary {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #7c3aed;
  list-style: none;
  cursor: pointer;
}

.circle-menu summary::-webkit-details-marker {
  display: none;
}

.circle-menu summary:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 3px;
}

/* Three lines that fold into an X */
.circle-menu summary span,
.circle-menu summary span::before,
.circle-menu summary span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.circle-menu summary span {
  position: relative;
}

.circle-menu summary span::before,
.circle-menu summary span::after {
  content: "";
  position: absolute;
  left: 0;
}

.circle-menu summary span::before {
  top: -6px;
}

.circle-menu summary span::after {
  top: 6px;
}

.circle-menu[open] summary span {
  background: transparent;
}

.circle-menu[open] summary span::before {
  transform: translateY(6px) rotate(45deg);
}

.circle-menu[open] summary span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.circle-menu nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  gap: 2px;
  box-sizing: border-box;
  width: 200px;
  padding: 64px 12px 12px;
  border-radius: 24px;
  background: #2e1065;
  animation: circle-menu-reveal 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-menu nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #ede9fe;
  text-decoration: none;
}

.circle-menu nav a:hover {
  background: #4c1d95;
}

.circle-menu nav a:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: -2px;
}

/* The circle starts at the button center (24px 24px) */
@keyframes circle-menu-reveal {
  from { clip-path: circle(24px at 24px 24px); }
  to { clip-path: circle(150% at 24px 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .circle-menu nav { animation: none; }
}
```

## Notes

- This CSS Circle Reveal Menu is 111 lines of pure CSS (2.1 KB) with no JavaScript and no dependencies. It uses keyframe animations, transitions, transforms and clip paths.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
