Sub-Menu-1.11-original
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">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
}
#mainDiv {
width: 100%;
min-height: 50px;
max-height: 100px;
height: 60vh;
background-color: transparent;
position: fixed;
top: 0px;
left: 0px;
display: flex;
justify-content: space-around;
align-items: center;
z-index: 10;
}
.section {
min-width: 100px;
border-radius: 10%;
flex: 1;
height: 80%;
min-height: 40%;
box-sizing: border-box;
margin: 0.2%;
padding: 0.1%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
position: relative;
transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
}
.section:hover {
background-color: rgba(255, 255, 255, 0.8); /* Adjust the values as per your preference */
box-shadow:
1px 3px 5px rgba(0, 0, 0, 1), /* Outer glow */
5px 5px 5px rgba(255, 255, 255, 1)inset /* Inner glow */
}
.button-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 50%;
min-height: 50px;
width: 50%;
}
.mainButton {
width: 80%;
height: 80%;
border: none;
border-radius:...