JSFiddle - React, Tailwind, and code Playground

by dotnetCarpenter

HTML

<p>Here</p>
<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

CSS

ul{
    max-height:0;
    transition:max-height 0.26s ease-out;
    overflow:hidden;
}
p:hover ~ ul{
    max-height: 200px;
}