jQuery switchClass
Posted
by Eric
on Stack Overflow
See other posts from Stack Overflow
or by Eric
Published on 2010-06-14T18:30:19Z
Indexed on
2010/06/14
18:32 UTC
Read the original article
Hit count: 231
Is it possible to undo a switchClass
transaition?
I'd like an element to slowly obtain class A
as you hover over it, and slowly lose it again once the mouse has moved away. However, the function appears to be glitchy, and calling .stop(0,1)
doesn't seem to help. In fact, it seems to break it.
I have a live example here. Yes, it's a 404 page, but that's not important. The navigation should be slowly gaining or losing a class, but it just jumps. The script can be found here.
Is such a transition possible?
© Stack Overflow or respective owner