The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript When hover, fadein/out just repeats

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #26448

    I’m trying simple fade in / out effects on hover over "li" …it works but it just keeps repeating (fadein/out) when i keep my mouse over them.

    Also, how can i make the effects so the ‘li’ that i hover will only have the animation instead of the entire ‘li’


    Sliding Door menu Example


    Yeah, it will repeat the animation if you hover over it for a number of times in a short span. To prevent this just use a stop() function before calling the fadein/fadeout function

    $(this).stop().fadeOut() ;

    try assigning some classes then it might move only the li you hover on.. But the code looks fine to me.. it should only animate the item on which you hover… What exactly is happening?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.