JSFiddle - React, Tailwind, and code Playground

by Abhishek Kumar

HTML

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<table>
<tr>
    <td><div id="bouncy1">Click here to bounce. Direction: Up</div></td>
</tr>
<tr>
    <td><div id="bouncy4">Click here to bounce. Direction: Down</div></td>
</tr>
</table>

CSS

div {
    padding:5px;
    width:150px;
    height:100px;
    text-align:center;
}
#bouncy1 {
    background-color:#FFEE88;
}
#bouncy4 {
    background-color:#88EEFF;
}

JavaScript

$(function(){
 
    //Add bounce effect on Click of the DIV
    $('#bouncy1').click(function () {
          $(this).effect("bounce", { times:5 }, 300);
    });
    
    $('#bouncy4').click(function () {
          $(this).effect("bounce", { direction:'down', times:5 }, 300);
    });
    
});