JSFiddle - React, Tailwind, and code Playground

by teneff

HTML

<div class="holder">
    <div>
        <h5>title</h5>
        <ul>
            <li>asd</li>
            <li>asd</li>
            <li>asd</li>
        </ul>
    </div>
</div>

CSS

* {
    margin: 0;
    padding: 0;
}
div.holder {
    position: relative;
    width: 200px;
    height: 200px;
    border: 1px solid #000;

}
div.holder div {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #000;
    opacity: 0.6;
    color: #fff;
    -webkit-transition: all 300ms;
    transition: all 300ms;
}
div.holder:hover div {
    opacity: 0.9;
}
h5 {
    padding: 5px;
}
ul {
    max-height: 0px;
    -webkit-transition: all 300ms;
    transition: all 300ms;
}
div.holder:hover ul {
    max-height: 200px;
}