Просто найдите советы по получению моей навигации по раскрывающимся спискам, чтобы плавно переходить на зависание, но может показаться, что они нашли правильный путь. Я попытался добавить переход легкости в выпадающий палец, но он, похоже, не работает. Я уверен, что пропустил что-то простое.Навигация по выпадающему плавному переходу
Будьте благодарны за любые советы,
https://jsfiddle.net/rufusbear/gkmhpskm/
<div class="main-nav">
<div class="row">
<nav>
<ul class="navbar">
<li><a href="#">About</a>
<ul>
<li><a href="#">History</a></li>
<li><a href="#">Meet The Team</a></li>
<li><a href="#">Facilities</a></li>
<li><a href="#">Opening Times</a></li>
<li><a href="#">Membership</a></li>
</ul>
</li>
<li><a href="#">Diary</a>
</li>
<li><a href="#">Lessons</a>
</li>
<li><a href="#">Events</a>
<ul>
<li><a href="#">Corporate Days </a></li>
<li><a href="#">Hens & Stags</a></li>
<li><a href="#">Group Bookings</a></li>
</ul>
</li>
<li><a href="#">Gallary</a>
</li>
<li><a href="#">Contact</a>
</li>
</ul>
</nav>
</div>
</div>
.main-nav {
width: 100%;
/* Spans the width of the page */
height: 60px;
margin-top: 1%;
/* Ensures there is no space between sides of the screen and the menu */
z-index: 99;
/* Makes sure that your menu remains on top of other page elements */
position: relative;
background-color: #718373;
}
.navbar {
height: 60px;
padding: 0;
margin: 0;
position: absolute;
/* Ensures that the menu doesn’t affect other elements */
}
.navbar li {
height: auto;
width: 150px;
/* Each menu item is 150px wide */
float: left;
/* This lines up the menu items horizontally */
text-align: center;
/* All text is placed in the center of the box */
list-style: none;
/* Removes the default styling (bullets) for the list */
font-size: 90%;
padding: 0;
margin: 0;
background-color: #718373;
}
.navbar a {
text-decoration: none;
/* Removes the default hyperlink styling. */
color: white;
/* Text color is white */
display: block;
line-height: 60px;
}
.navbar li ul {
display: none;
/* Hides the drop-down menu */
height: auto;
margin: 0;
/* Aligns drop-down box underneath the menu item */
padding: 0;
/* Aligns drop-down box underneath the menu item */
}
.navbar li:hover ul {
display: block;
/* Displays the drop-down box when the menu item is hovered over */
}
.navbar li ul li {
background-color: #718373;
}
.navbar li ul li a:hover {
border: 3px solid #fff;
padding: 0;
}
.row {
max-width: 950px;
margin: 0 auto;
position: relative;
text-align: center;
}