<meta name="viewport" content="width=device-width, initial-scale=1" />
<div id="app">
<div style="display: grid; grid: auto-flow / 300px minmax(0, 1fr) 200px">
<div style="background-color: tomato">1</div>
<div style="background-color: pink">
<div style="display: flex">
<div
style="
flex-basis: 50%;
white-space: nowrap;
overflow-x: hidden;
text-overflow: ellipsis;
"
>
Prev pageeeeeeeeeeeeeeeeeeeeee
</div>
<div
style="
flex-basis: 50%;
white-space: nowrap;
overflow-x: hidden;
text-overflow: ellipsis;
"
>
Next pageeeeeeeeeeeeeeeeeeeeee
</div>
</div>
</div>
<div style="background-color: lightblue">3</div>
</div>
</div>
.mega-menu {
background: #f0f0f0;
visibility: hidden;
opacity: 0;
transition: opacity 1s, visibility 1s;
left: 0;
position: absolute;
text-align: left;
width: 100%;
}
.droppable:hover > .mega-menu {
visibility: visible;
opacity: 1;
}
display
, которое ни разу не анимируемо p
имеет довольно странные правила автозакрывания