JSFiddle - React, Tailwind, and code Playground

HTML

<div>
    <span>Текст</span>
</div>

CSS

div {
    background: #5c5c5c;
    height: 50px;
    text-align: center;
    padding-top: 10px;
    width: 200px;
}

span {
    color: #ffffff;
    font-family: Tahoma;
    font-size: 30px;
    opacity: 0;
    text-shadow: 0px 0px 2px #d4d4d4;
}

JavaScript

$('div').mouseover(function(e) {
    $(this).children('span').stop().animate({
            opacity: '1'
    },
    300);
}).mouseout(function(e) {
    $(this).children('span').stop().animate({
            opacity: '0'
    },
    300);
});