jquery li with image fade in background (fade in class)
Posted
by steve
on Stack Overflow
See other posts from Stack Overflow
or by steve
Published on 2010-05-17T18:38:33Z
Indexed on
2010/05/17
18:40 UTC
Read the original article
Hit count: 373
I'm currently using this code:
var gallery = $('ul#gallery').children();
$(gallery).filter(':even').not(':last').hover(function () {$(this).toggleClass('next')});
I'm trying to make it fade this new class in. Currently, there's an <li>
with an image in it, no background. When the 'next' class is added, it gives it a background image when hovered over. Is there a way to just fade in the new class without making the image blink/fade at all? Thanks.
© Stack Overflow or respective owner