JSFiddle - React, Tailwind, and code Playground

HTML

<font id="test" size="7">This Text!</font>

JavaScript

$(function() {

    $('#test').fadeOut(500, function() {
        $(this).text('Some other text!').fadeIn(500);
    });

});