JSFiddle - React, Tailwind, and code Playground

by shivanraptor

HTML

<div id="main_menu" onmouseover="$('#submenu').stop(true,false).slideDown();" onmouseout="$('#submenu').stop(true,false).slideUp();">Main Menu</div>
<div id="submenu">Some submenu contents here</div>

CSS

#main_menu {
    width: 500px;
    height: 30px;
    background-color: #AAA;
}
#submenu {
    width: 500px;
    height: 20px;
    display: none;
    background-color: #CCC;
}