JSFiddle - React, Tailwind, and code Playground

HTML

<h1 id="featured">Featured Text</h1>

CSS

#featured{
    font-size: 3em;
    color: #ff0000;
}

JavaScript

$(document).ready(function() {
    setTimeout(fadeFeaturedOut, 1000); // call fadeFeaturedOut function after 1 second
    setTimeout(fadeFeaturedIn, 3000); // call fadeFeaturedIn function after 3 seconds
});

function fadeFeaturedOut(){
    $('#featured').fadeOut('slow');  // Here is the syntax to fade an element out.
}

function fadeFeaturedIn(){
    $('#featured').fadeIn('slow');  // Here is the syntax to fade an element in.
}