I currently have an HTML menu with a submenu structured as follows:
<li id="item-3" class="menu-item has-children-3">
<a href="#" class="sf-with-ul"><span>Auto</span></a>
<ul class="sub-menu fadeOut animated fast" id="cpx" style="">
<li id="menu-item-9" class="menu-item"><a href="#"><span>Reno яхту</span></a></li>
<li id="menu-item-6" class="menu-item"><a href="#"><span>Audi</span></a></li>
</ul>
</li>
My goal is to achieve the following behavior: When hovering over the "Auto" menu, I want to change the ul element from fadeOut to fadeIn, set the style="display:block"
, and upon mouseout revert back to fadeOut with the style="display:none"
while also adding the class fadeOut to the ul element.