Sub-Menu-1.11-glas-morphism
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;
background: linear-gradient(135deg, #f0f0f0 0%, #d9e0e8 100%);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#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: 10px;
flex: 1;
height: 80%;
min-height: 40%;
box-sizing: border-box;
margin: 1%;
padding: 1%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
position: relative;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.8);
box-shadow: 0 0 10px rgba(0, 0, 10px, 0.2);
transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.section:hover {
transform: scale(1.02);
background-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.2);
}
.button-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 50%;
...