Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8601337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:49:07+00:00 2026-06-12T01:49:07+00:00

I have a navigation bar that slides down, very easy, and when that’s complete,

  • 0

I have a navigation bar that slides down, very easy, and when that’s complete, a small pixel sized line goes across it all to separate sub pages.

When you hover your mouse over it very quickly, it tends to stay visible. As you can see from the filter and stop functions, I don’t want any jumpy things happening – it would be great for all of it to be really smooth.

Is there any way of getting this to work smoothly, regardless how retarded the user is as well as it being super responsive?

$(".menu").hover(function() {
    $(".children").filter(':hidden').slideDown(300, function() {
        $(".menu-line").stop(true, false).animate({ width: "903px" });
    });
}, function() {
    $(".menu-line").stop(true, false).animate({ width: "0px" }, function() {
        $(".children").slideUp(300);
    });
});

Working example: http://jsfiddle.net/varFS/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:49:08+00:00Added an answer on June 12, 2026 at 1:49 am

    Titanium, you must use timeout for hiding your menu to get desired result:

    $(".children").css("padding-top", "21px").hide();
    $(".menu").hover(function() {
        $(".children").filter(':hidden').slideDown(300, function() {
            $(".menu-line").stop(true, false).animate({
                width: "400px"
            });
        });
    }, function() {
        setTimeout(function() {
            if (!$(".menu, .menu ul, .menu ul li").is(':focus')) {
                $(".children").css("padding-top", "21px").hide();
            }
            $(".menu-line").stop(true, false).animate({
                width: "0px"
            }, function() {
                $(".children").slideUp(300);
            });
        }, 400);
    });​
    

    Working Example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks in advance. I have a navigation bar that slides out when you hover
I have a navigation bar that tells the user which page is selected by
I have a navigation bar that has two dropdowns (as nested ul's). I'm trying
I have a UINavigationBar based application - only a one navigation bar that is
I want to have a navigation bar with a settings button on it that
I have created a flexible navigation bar in my app that will show custom
I have a view MainView that has a navigation bar without any navigation controller,
I have a jQM application that uses the header as a navigation bar. The
With jQuery Mobile, is there a way that I can have a navigation bar
i have a navigation bar that runs the whole way across the bottom of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.