JSFiddle - React, Tailwind, and code Playground

HTML

<button>Contact</button>
<div class="toggle"></div>

CSS

button
{
    position: absolute;
    right: 50px;
    top: 30px;
}

.toggle {
    width: 100px;
    height: 300px;
    background: #ccc;
    position: absolute;
    right: 20px;
    top: 80px;
  }

JavaScript

$("button" ).click(function() {
  $( ".toggle" ).toggle( "bounce", { times: 3 }, "slow" );
});