JSFiddle - React, Tailwind, and code Playground
HTML
<div class="trigger">
Hover me to see a height transition.
<div class="el">Additional content</div>
</div>
SCSS
.trigger {
background: black;
color: white;
border-radius: 5px;
padding: 5px;
transition: max-height 0.3s;
overflow: hidden;
.el {
max-height: 0;
}
&:hover > .el {
max-height: 100%;
}
}