JSFiddle - React, Tailwind, and code Playground
HTML
<div id="bounce"></div>
CSS
#bounce {
height: 100px;
width: 100px;
background-color:black
;
}
JavaScript
$("#bounce").click(function() {
$(this).effect("bounce", {
times: 3
}, 300);
});