JSFiddle - React, Tailwind, and code Playground
HTML
<button>Hide</button>
<p>This is a paragraph with little content.</p>
<p>This is another small paragraph.</p>
JavaScript
/* jquery hide with speed parameter
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
*/
$("button").click(function () {
$("p").hide(1000);
});