Forums

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

Home Forums CSS Navigation submenu with different fadeout speeds.

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #46476
    Jozsef K.
    Participant

    Hey, guys. I was wondering, how could I do a simple jquery script to fade in .submenu of navigation while hovering in items, and fade out when hovering out of it, but here is the trick:

    When I hover to another navigation item, it should fade out the last hovered item much faster then when I hover out the entire navigation. I tried this, but somewhere I make a mistake:


    $('#navigation li').hover(function() {
    $('.subMenu').fadeOut(10);
    $('.subMenu',this).stop(true,true).fadeIn(600);
    },function() {
    var $t=this;
    $('.subMenu:visible',$t).fadeOut(400);
    })

    Can you help me?

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.