Navigáció
Ívelt aláhúzás menü
Élő előnézet – a komponens teljes méretben.
Élő előnézet
HTML · CSS · JS
<nav class="menu-curve">
<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-curve {
display: flex;
align-items: center;
justify-content: center;
gap: 36px;
padding: 15px 20px;
}
.menu-curve a {
position: relative;
padding: 10px 4px 13px;
color: #8c97a7;
text-decoration: none;
font-size: 14px;
font-weight: 500;
letter-spacing: 0.06em;
transition: color 0.3s ease;
}
.menu-curve a::after {
content: "";
position: absolute;
left: 50%;
bottom: 0;
width: 0;
height: 7px;
border-bottom: 2px solid #2ecc71;
border-radius: 50%;
transform: translateX(-50%);
transition:
width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
box-shadow 0.4s ease;
}
.menu-curve a:hover,
.menu-curve a.active {
color: #ffffff;
}
.menu-curve a:hover::after,
.menu-curve a.active::after {
width: 32px;
box-shadow: 0 3px 10px rgba(46, 204, 113, 0.35);
}
@media (max-width: 700px) {
.menu-curve {
gap: 20px;
flex-wrap: wrap;
}
}
Ehhez az elemhez nincs külön JavaScript.