JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test"></div>

CSS

#test { height: 100px; width: 100px; background: #000; }

JavaScript

var block = $("#test");
block.fadeTo(2000, 0.3, function() {
    block.fadeTo(2000, 1);
});