Navigáció
Futó fénycsík
Élő előnézet – a komponens teljes méretben.
Élő előnézet
HTML · CSS · JS
<nav class="menu-light">
<a href="#" class="active">Kezdőlap</a>
<a href="#">Rólunk</a>
<a href="#">Szolgáltatások</a>
<a href="#">Portfólió</a>
<a href="#">Kapcsolat</a>
</nav>
.menu-light {
display: flex;
align-items: center;
justify-content: center;
gap: 34px;
padding: 18px 24px;
background: #080b11;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 14px;
}
.menu-light a {
position: relative;
padding: 10px 2px;
color: #8995a7;
text-decoration: none;
font-size: 13px;
font-weight: 500;
letter-spacing: 0.08em;
transition: color 0.3s ease;
}
.menu-light a::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 1px;
background: linear-gradient(
90deg,
transparent,
#2ecc71,
transparent
);
transform: scaleX(0);
transform-origin: center;
transition: transform 0.4s ease;
}
.menu-light a:hover,
.menu-light a.active {
color: #ffffff;
}
.menu-light a:hover::after,
.menu-light a.active::after {
transform: scaleX(1);
}
.menu-light a.active::before {
content: "";
position: absolute;
left: 50%;
bottom: -3px;
width: 5px;
height: 5px;
border-radius: 50%;
background: #2ecc71;
transform: translateX(-50%);
box-shadow: 0 0 12px #2ecc71;
}
@media (max-width: 700px) {
.menu-light {
gap: 20px;
flex-wrap: wrap;
}
}
Ehhez az elemhez nincs külön JavaScript.