JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div class="item first"></div>
<div class="item second"></div>
<div class="item third"></div>
</div>
CSS
.container {
display: flex;
width: 100%;
height: 200px;
padding: 10px;
background: aquamarine;
align-items: stretch;
justify-content: space-around;
}
.item {
width: 25%;
transition: all 0.2s linear;
}
.first {
background: green;
}
.second {
background: blue;
}
.third {
background: orange;
}
.item:hover {
margin-top: -20px;
width: 30%;
}