JSFiddle - React, Tailwind, and code Playground

HTML

<div id="song1" class="songs" onclick="song1()">
    <div id="songtitle1" class="songtitles">Hello World</div>
</div>

CSS

.songs {
    height: 200px;
    width: 200px;
    transition-duration: 0.3s;
    -webkit-transition-duration: 0.3s;
    cursor: pointer;
    background-color: grey;
}

.songtitles {
    opacity: 0.3;
    color: white;
    font-size: 1.5em;
    position: absolute;
    width: 195px;
    padding-left: 5px;
    background: -moz-linear-gradient(top, rgba(0,0,0,0.71) 0%, rgba(0,0,0,0.71) 41%, rgba(0,0,0,0.71) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.71)), color-stop(41%,rgba(0,0,0,0.71)), color-stop(100%,rgba(0,0,0,0.71))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, rgba(0,0,0,0.71) 0%,rgba(0,0,0,0.71) 41%,rgba(0,0,0,0.71) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, rgba(0,0,0,0.71) 0%,rgba(0,0,0,0.71) 41%,rgba(0,0,0,0.71) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, rgba(0,0,0,0.71) 0%,rgba(0,0,0,0.71) 41%,rgba(0,0,0,0.71) 100%); /* IE10+ */
    background: linear-gradient(to bottom, rgba(0,0,0,0.71) 0%,rgba(0,0,0,0.71) 41%,rgba(0,0,0,0.71) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b5000000', endColorstr='#b5000000',GradientType=0 ); /* IE6-9 */
}

.songtitles:hover {
    opacity: 1;
}