JSFiddle - React, Tailwind, and code Playground

by vzytoi

HTML

<button>Menu</button>
<div class="menu"></div>

CSS

body {
 background: yellow;
}
button {
  width: 100%;
  height: 40px;
  padding: 10px;
  color: #fff;
  background: #000;
  border-radius: 3px;
  margin-top: 2.5%;
}
div.menu {
  width: 100%;
  background: #D3D3D3;
  height: 40px;
}

JavaScript

$('.menu-hambourger').hide();
$('button').click(function(){
$('.menu-hambourger').slideToggle();
});