Grow your CSS skills. Land your dream job.

strange error with fadein/fadeout & stop

  • # January 20, 2010 at 4:23 am

    I’ve noticed a strange error in this script

    Code:
    $j(‘.persona’).hover(
    function() { $j(this).children(‘.testo’).stop().fadeIn(400);}
    , function() { $j(this).children(‘.testo’).stop().fadeOut(400);}
    );

    this code just fade in an image that is set to display:none in the css and fade it out when the mouse is out.

    the html is something like that.

    Code:
    some text

    but if I hover the image faster the text starts to fade out a bit more everytime without returning to the normal opacity.
    I attach two screenshots so you can figure out it a bit easily.

    [img]http://www.apertamente.eu/site/screen1.jpg[/img]
    [img]http://www.apertamente.eu/site/screen2.jpg[/img]

    thanks a lot.

    # January 25, 2010 at 12:24 pm

    no one?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".