JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
<div class="shake">click to shake</div>

CSS

.shake {
    background: red;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 100px;
    height: 20px;
}

JavaScript

$('.shake').click(function() {
    $(this).effect("shake");
});