Skip to main content

jquery fadein/out 1010 Responses

Last post: 2 years, 2 months ago | Thread started: Mar 16, 10, 6:15 a.m.

RespondNew TopicDisable Images

Out of context: Response #7 [Mar 16, 10, 6:15 a.m.]

  • Stugoo

    sounds like teh element is toggling a show hide to start with.

    I would chain it like this:
    $(".infooverlay")
    .stop()
    .css( { 'display': 'block, opacity : 0} )
    .fadeTo(400, 1 );

    then out
    $(".infooverlay")
    .hide()
    .css({ 'display' : 'none, opacity : 0});

    • fadeTo is better than fadeIn/Out as it can be a bit buggy on heavy rollovers.Stugoo1/2
      you might not need that last opacity. also mys syntax might be off.Stugoo2/2
    next note >+ add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel

Skip to main content