JSFiddle - React, Tailwind, and code Playground

HTML

<div id="testHdiv"><h1 class="testH"><b>< ></b></h1>
    <p class="testP">Text and text, more text<br>Bla bla bla bla</p>
    </div>

CSS

.testH {
    font-family: impact;
    text-align: center;
    font-size: 50px;
    transition: all 1s;
}

.testP {
    text-align: center;
    opacity: 0.5;
    font-size: 18px;
    transition: all 1s;
}

#testHdiv:hover > p {
    opacity: 1;
}

.testP:hover {
    opacity: 1;
}