JSFiddle - React, Tailwind, and code Playground
by gion_13
HTML
<div id="wrapper">
<div id="div-1">I'm div-1</div>
<div id="div-2">I'm div-2</div>
</div>
CSS
div {
width: 200px;
height: 50px;
background-color: orange;
}
#div-2 {display: none;}
JavaScript
$('#wrapper').hover(
function(){$('#div-2').stop().fadeIn(100);},
function(){$('#div-2').stop().fadeOut(100);}
);