Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
davespser authored Dec 7, 2024
1 parent d47e69e commit c0d44bd
Showing 1 changed file with 59 additions and 2 deletions.
61 changes: 59 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,65 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Firebase + Three.js</title>
<link rel="stylesheet" href="style.css">
<title>Menú Desplegable</title>
<style>
/* Contenedor principal del menú */
#menu-container {
position: absolute;
bottom: 2%;
left: 2%;
background: rgba(0, 0, 0, 0.8);
padding: 10px;
border-radius: 8px;
z-index: 100; /* Siempre por encima */
display: flex;
flex-direction: column;
gap: 10px;
}

/* Estilo de las opciones del menú */
.menu-item {
display: flex;
align-items: center;
justify-content: flex-start;
padding: 10px;
color: white;
transform: rotate(-12deg);
font-size: 18px;
cursor: pointer;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 4px;
transition: background 0.3s, transform 0.2s;
}

/* Icono dentro de cada opción */
.menu-item span {
margin-right: 10px;
font-size: 20px;
transform: rotate(-10deg);
}

/* Efecto hover */
.menu-item:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateX(10px) rotate(-10deg);
}

/* Contenido desplegable */
.menu-content {
display: none;
flex-direction: column;
gap: 10px;
}

#toggle:checked ~ .menu-content {
display: flex;
}

.hidden-input {
display: none;
}
</style>
</head>
<body>
<div id="menu-container">
Expand Down

0 comments on commit c0d44bd

Please sign in to comment.