JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrapper">
    <div class="parent">
    </div>
    <div class="child">
         lorem ipsum
    </div>
</div>

CSS

.wrapper {
    width: 300px;
    height: 300px;
    margin: 30px auto;
    border: 1px dashed #ccc;
    overflow:hidden;
    position: relative;
}

.parent {
    width: 1px;
    height: 100px;
    background-color: #f00;
    opacity: 0;
    margin: 0 auto;
    -webkit-transition: all 0.4s ease;
            transition: all 0.4s ease;
    position: absolute;
    left: 50%;
}

.wrapper:hover .parent {
    opacity: 1;
    -webkit-transform: scaleX(300);
    transform: scaleX(300);
    z-index: 1;
}

.child { 
    position: absolute;
    right: 0;
    -webkit-transition: all 0.4s ease;
            transition: all 0.4s ease;
    opacity: 0;
}

.wrapper:hover .child {
    -webkit-transition-delay: 0.2s;
    transition-delay: 0.2s;
    opacity: 1;
    z-index: 2;
}