JSFiddle - React, Tailwind, and code Playground

HTML

<div class="activator">
    Here's a magic list
    <ul>
        <li class="elastic active_only"> item one
        <li class="elastic active_only"> item two
    </ul>
</div>

CSS

.active_only {
    opacity:0;
    transition:opacity 1s;
}
.activator:hover .active_only{
    opacity:1;
}
.elastic{
    height:20px;
    transition:height 1s;
}
.elastic:hover {
    height:40px;
}
li {
    border:1px solid red;
}