JSFiddle - React, Tailwind, and code Playground

by Nick Craver

HTML

<div id="header">Header</div>
<div id="content">Content</div>

CSS

#header
{
    width: 300px;
    border: 1px solid #000;
}

#content
{
    width: 300px;
    height: 300px;
    border: 1px solid #000;
    display:none;
    position: relative;
}

JavaScript

$('#header, #content').hover(FadeMenuIn, FadeMenuOut);

function FadeMenuIn(ID) {
    $('#content').stop(true, true).slideDown('slow');
}

function FadeMenuOut(ID) {
    $('#content').stop(true, true).delay(10).slideUp('slow');
}