JSFiddle - React, Tailwind, and code Playground

by Naveen Kumar

HTML

<input type="button" id="btn" value="show/hide">
<div id="test" style="display: none;">
    <p>Hello</p>
</div>

CSS

#test {
    width: 100px;
    height: 40px;
    background: red;
}

JavaScript

$('#btn').on('click', function () {
    $("#test").fadeToggle("slow", "linear")
});