Circle-Menu 1.12

by velo_ninja

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Dynamic Round Menu with Tooltip and Submenus</title>
  <style>
    body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f0f0;
}

.menu {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition: transform 0.3s;
}

.menu-item {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(33, 150, 243, 0.6); /* Glass effect background */
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  font-size: 16px;
  text-align: center;
  transform-origin: center center;
  backdrop-filter: blur(5px); /* Blur for glass effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

.menu-item:hover {
  background-color: rgba(255, 0, 255, 0.6); /* Transparent red */
  color: #ffffff;
}

.menu-item.selected {
  background-color: rgba(0, 128, 0, 0.6); /* Transparent green */
  z-index: 888;
 
}

.menu-item.selected .menu-text {
  transform: rotate(-0deg); /* Initial value */
  transition: transform 0.3s;
}

.menu-text {
  display: inline-block;
  transition: transform 0.3s;
}

.submenu {
  position: absolute;
  display: none;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 0, 255, 0.9); /* Transparent pink */
  border: 1px solid rgba(204, 204, 204, 0.5); /* Transparent border */
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  padding: 10px;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.menu-item.selected .submenu {
  display: flex;
  bottom: 100%;
  transform: translateY(-25px);
}

.menu-item:hover:not(.selected)...