JSFiddle - React, Tailwind, and code Playground
HTML
<p>Click anywhere to toggle the box.</p>
<div id="toggle" class='t'>1</div>
<div id="" class='t'>2</div>
<div class='t'>3</div>
CSS
.t {
width: 100px;
height: 100px;
background: #ccc;
display: inline-block;
float: left;
}
JavaScript
$( document ).click(function() {
$( "#toggle" ).toggle('slide');
});