JSFiddle - React, Tailwind, and code Playground

HTML

<div class="pic">
    <img src="http://placehold.it/200x200" alt="" />
    <div class="hide">
        <span>Название</span>
    </div>
</div>

CSS

.pic {
    width: 200px;
    height: 200px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.pic .hide {
    position: absolute;
    top: 100%;
    left:0;
    width: 100%;
    height: 100%;
    background: rgba(10, 110, 13, 0.5);
    text-align: center;
    line-height: 200px;
    color: white;
    font-weight: bold;
    -webkit-transition: top 0.3s linear;
    -moz-transition: top 0.3s linear;
    transition: top 0.3s linear;
}

.pic:hover .hide {
    top: 0;
}

.hide span {
    padding: 5px;
    border: 2px solid white;
    border-radius: 5px;
    text-transform: uppercase;
}