I'm currently experimenting with jQuery's fadeIn/fadeOut effects on images used as buttons within an unordered list. My goal is to have the hovered image fade in quickly and out slowly upon mouseout. The issue I'm encountering is related to implementing this effect in a horizontal menu with floated <li>
tags. I've set up a jsfiddle with a basic example, though the final list will contain 4 or 5 items.
To position the hover images properly, I've created a second <ul>
that overlaps the initial list. However, the problem arises when hovering triggers the fadeIn fadeOut effect twice - presumably due to the presence of two <ul>
elements.
Is there a way to stack two images on top of each other within the same <li>
, or perhaps a better method entirely to achieve this result? Any guidance would be greatly appreciated.