Looking to create a smooth delay for opening and closing a div when mouse hover. Here is the code I have:
function show_panel1()
{
document.getElementById('hoverpanel1').style.display="block";
}
function hide_panel1()
{
document.getElementById('hoverpanel1').style.display="none";
}
<div class="col-sm-4 slideanim" onMouseOver="show_panel1()" onMouseOut="hide_panel1()">
<div class="thumbnail panel">
<img src="images/hospital.jpg" alt="Paris">
<h3><strong>Service1</strong></h3>
<div class="" id="hoverpanel1" style="display:none;">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur porta dictum turpis, eu mollis justo gravida ac. Proin non eros blandit, rutrum est a, cursus quam. Nam ultricies, velit ac suscipit vehicula, turpis eros sollicitudin lacus, at convallis mauris magna non justo. Etiam et suscipit elit. Morbi eu ornare nulla, sit amet ornare ...
<h3 style="font-size:20px;">NEW PETS FOR SALE!</h3>
<?php include"panelcarousel.php"; ?>
</div>
</div>
</div>
Found this source but unsure how to implement it: