menu-Circle
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 Menu</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter&display=swap">
<style>
:root {
--white: #ffffff;
--light-grey: #edf0f1;
--violet: #655be1;
--dark-violet: #5146e1;
--black: #21232a;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
ul {
list-style: none;
}
a {
color: inherit;
text-decoration: none;
}
body {
font-family: "Inter", sans-serif;
text-align: center;
padding: 0 20px;
background: var(--light-grey);
color: var(--white);
}
.notification {
position: absolute;
top: 0;
right: 0;
padding: 10px;
background: var(--violet);
}
.nav {
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 300px;
height: 300px;
margin: 300px auto 0;
background: var(--white);
border-radius: 50%;
box-shadow: rgb(50 50 93 / 10%) 0 30px 60px -12px, rgb(0 0 0 / 15%) 0 18px 36px -18px;
}
.nav [type="checkbox"] {
position: absolute;
left: -9999px;
}
.nav [type="checkbox"] + label {
position: absolute;
width: 75px;
height: 75px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
cursor: pointer;
z-index: 1;
background: var(--violet);
border-radius: 50%;
transition: all 0.2s;
}
.nav [type="checkbox"] + label:hover {
background: var(--dark-violet);
}
.menu {
position: relative;
width: 100%;
height: 100%;
}
.menu li {
position: absolute;
transition: all 0.4s;
}
.menu li a {
width: 50px;
height: 50px;
...