.wrap {
display: flex;
flex-flow: column;
background: gray;
position: relative;
overflow: auto;
}
.menu {
}
.replay {
height: 100px;
}
.slide-in {
transform: translate(0, -40%);
position: absolute;
background: red;
}
.head {
background: yellow;
}
<div class='wrap'>
<div class='replay'>Extra Stuff</div>
<div class='menu'>
<div class="slide-in">
World
</div>
<div class="head">
Normal
</div>
</div>
</div>
I am trying to create a menu, where you click normal, World in red, slides into view, from behind the Normal div.
But I can't put the red world behind the normal div. I've tried reordering elements, or z index but didn't work.