хочу сделать бокове меню, чтобы при наведении на ссылку выскакивал блок с подпунктами, однако при наведении на любую из ссылок выскакивают все 3 блока, наложенных друг на друга. Как сделать так, чтобы для каждой ссылки выскакивал свой блок?
.navigation-block {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 25%;
}
.product-menu {
background: #ccffff;
width: 50%;
height: auto;
}
.product-menu ul{
margin: 0;
padding: 0;
list-style: none;
}
.product-menu li:last-child a {
border-bottom: 0;
}
.product-list a {
display: block;
background: #3d3d3d;
padding: 10px;
color: #fff;
text-decoration: none;
font-size: 15px;
border-bottom: solid 1px #666;
transition: 0.5s all;
}
.product-list a:hover {
background: #666;
padding: 10px 0 10px 20px;
}
.product-list {
position: relative;
}
.product-list-drop {
position: absolute;
width: 500px;
height: 300px;
border: 1px red solid;
left: 100%;
top: -9999em;
opacity: 0;
transition: 0.5s opacity;
}
.product-list:hover .product-list-drop {
opacity: 1;
top: 0;
}
<aside class="navigation-block">
<div class="product-menu">
<ul class="product-list">
<li><a href="#">Пункт 1</a>
<div class="product-list-drop">
</div>
</li>
<li><a href="#">Пункт 2</a>
<div class="product-list-drop">
</div></li>
<li><a href="#">Пункт 3</a>
<div class="product-list-drop">
</div></li>
</ul>
</div>
</aside>