JSFiddle - React, Tailwind, and code Playground
HTML
<p>Here (scaleY(1))</p>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Hello.
CSS
ul {
background-color: #eee;
-webkit-transform: scaleY(0);
-o-transform: scaleY(0);
-ms-transform: scaleY(0);
transform: scaleY(0);
-webkit-transform-origin: top;
-o-transform-origin: top;
-ms-transform-origin: top;
transform-origin: top;
-webkit-transition: -webkit-transform 0.26s ease-out;
-o-transition: -o-transform 0.26s ease;
-ms-transition: -ms-transform 0.26s ease;
transition: transform 0.26s ease;
position:absolute;
}
p:hover ~ ul {
-webkit-transform: scaleY(1);
-o-transform: scaleY(1);
-ms-transform: scaleY(1);
transform: scaleY(1);
position: relative;
}