попробуй так
.menu {
position: fixed;
left: 0;
top: 0;
bottom: 0;
width: 200px;
background-color: lightblue;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
&__el {
&:hover {
> .submenu {
visibility: visible;
opacity: 1;
}
}
}
&__link {
display: block;
padding: 15px;
}
}
.submenu {
position: fixed;
/* width: 500px; */
top: 0;
bottom: 0;
left: 200px;
background: lightgreen;
justify-content: center;
width: auto;
padding: 20px;
visibility: hidden;
opacity: 0;
transition: .3s ease;
display: flex;
/* flex-direction: column; */
flex-wrap: wrap;
&__el {
display: flex;
flex-direction: column;
}
}