, . CSS.
, . , . , , 1 . , . , , , .
.trigger {
box-sizing: border-box;
position: relative;
width: 120px;
margin: 0 0 50px;
padding: 10px;
background: #bada55;
text-align: center;
}
.sub {
box-sizing: border-box;
position: absolute;
top: 100px;
left: 0;
width: 120px;
background: #4863a0;
color: #fff;
text-align: left;
max-height: 0; overflow: hidden;
opacity: 0;
transition: max-height 0s 1.5s,
opacity .4s 1s;
pointer-events: none;
}
.sub > * {
pointer-events: auto;
}
.sub:hover,
.trigger:hover .sub {
max-height: 500px;
opacity: 1;
transition-delay: 0s;
}
.item:not(:last-child) {
padding: 10px 10px 5px;
}
.item:last-child {
padding: 10px;
}
<div class="trigger">HOVER ME
<div class="sub">
<div class="item">Item 1</div>
<div class="item">Item 2</div>
<div class="item">Item 3</div>
<div class="item">Item 4</div>
</div>
</div>
Hide result, (ab) CSS . , . , , . , , . , , . , (max-height: 0) (overflow: hidden). hover, , pointer-events: none. , , max-height. , , , pointer-events: auto . , max-height: none, , 500px .