JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
CSS
div { margin: 0px; width: 100px; height: 80px; background: green; border: 1px solid black; position: relative; }
JavaScript
$("div").click(function () {
$(this).hide("slide", { direction: "right" }, 1000);
});