I am trying to replicate the animation seen on this website . I have two divs stacked on top of each other and I've written the following jQuery code:
$('div.unternehmen-ahover').hover(
function () {
$('div.unternehmen-ahover').slideToggle("slow");
$('span.span-picture-menu').fadeIn();
},
function () {
});
$('div.unternehmen').hover(
function () {
},
function () {
$('div.unternehmen-ahover').slideToggle("slow");
$('span.span-picture-menu').fadeOut();
});
});
The problem I'm facing is that the hover effect works fine initially, but sometimes it doesn't slide toggle correctly when transitioning between div elements. Any assistance with this issue would be greatly appreciated.
Thank you in advance.