JSFiddle - React, Tailwind, and code Playground

HTML

<div id="head">Bla-bla</div>
<div id="foot">Bla-bla-bla</div>

JavaScript

var labe = $("#label_text");
    $("#head").add("#foot").hover(function () {
        $(this).css({
            "color": "rgba(46, 46, 46, 0.47)",
            "text-shadow": "white 0px 0px 0px"
        });
    }, function () {
        $(this).css({
            "color": "rgb(219, 133, 251)",
            "text-shadow": "black 2px 2px 4px"
        });
    });