JSFiddle - React, Tailwind, and code Playground
HTML
<ul id="aaa">
<li id="a"></li>
<li id="b"></li>
<li id="c"></li>
</ul>
CSS
#aaa {
height:910px;
list-style:none;
display:inline-block;
white-space: nowrap;
margin:0;
padding:0;
}
#aaa li {
height:300px;
width:100px;
margin:0
padding:0;
display:inline-block;
border:3px solid black;
position:relative;
overflow:hidden;
}
#box{
width:100px;
height:50px;
background:red;
position:absolute;
bottom:-53px;
z-index:9;
}
JavaScript
$('#aaa li').hover(function()
{
if(($(this).children().length)==0){
$(this).append('<div id="box"></div>');
}
$(this).children().stop().animate({bottom:'0px'},{queue:false,duration:350});
},
function() {
$(this).children().stop().animate({bottom:'-53px'},{queue:false,duration:300,
complete:function() {
$(this).remove();
}
});
});