JSFiddle - React, Tailwind, and code Playground

HTML

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

CSS

ul{
    -webkit-transform: matrix(1, 0, 0, 0, 0, 0);
    -webkit-transform-origin:top;
    -webkit-transition:-webkit-transform 0.26s ease-out;
    transform: matrix(1, 0, 0, 0, 0, 0);
    transform-origin:top;
    transition:transform 0.26s ease-out;
}
section ul {
    -webkit-transform: matrix(1, 0, 0, 0.0001, 0, 0);
    transform: matrix(1, 0, 0, 0.0001, 0, 0);
}
p:hover ~ ul{
    -webkit-transform: matrix(1, 0, 0, 1, 0, 0);
    transform: matrix(1, 0, 0, 1, 0, 0);
}

JavaScript

var here = [].splice.call(document.getElementsByTagName('p'), 0);
here.forEach(function(el){
    el.addEventListener(addClass);
})
function addClass() {
    this.className += '';
}