JSFiddle - React, Tailwind, and code Playground
by kiokotzu
HTML
<div id="shake">I shoud shake<br /><br />I should not move on dblclick</div>
<a class="tap" href="#">click</a>
CSS
div#shake {
width: 193px;
height: 85px;
position: absolute;
top: 169px;
left: 79px;
background: blue;
color:#fff;
}
JavaScript
$(document).ready(function() {
$(".tap").click(function () {
$("#shake").effect("shake", { times:3, distance:2 }, 60);
});
});