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 6681057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:32:49+00:00 2026-05-26T04:32:49+00:00

I have the typical submenu structure: <ul> <li> <a href=#>Parent link</a> <ul> <li><a href=#>Submenu

  • 0

I have the typical submenu structure:

<ul>
  <li>
    <a href="#">Parent link</a>
    <ul>
      <li><a href="#">Submenu link</a></li>
    </ul>
  </li>
</ul>

and in design/html mockups, I would use CSS3 transitions to animate the submenus but since pointer-events: none isn’t a practical alternative for display: none, this method isn’t great for live sites.

I figure jQuery would be the only way to create the cross-browser animation I want. When the parent <li> is hovered, I want the submenu to go from 0 opacity to 100, but also rise up with a margin change.

I know it sounds confusing, but here’s a basic version of what I’m looking for: http://jsfiddle.net/jwq5R/ (only works correctly in browsers that support pointer-events and CSS3 transitions) but only with the animation done with jQuery.

I researched and I just can’t get anything to work so far to get the effect I want.

Any help would be appreciated. Thanks in advanced.

  • 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-05-26T04:32:50+00:00Added an answer on May 26, 2026 at 4:32 am

    Try this:

    http://jsfiddle.net/jwq5R/1/

    $(function(){
        $('#nav>li').hover(function() {
            $(this).closest('li').find('>ul').css({
                'opacity': 0,
                'margin-top': 15
            }).show().animate({
                'margin-top': 0,
                'opacity': 1
            }, 300);
        }, function() {
            $(this).closest('li').find('>ul').fadeOut(200, function() {
                $(this).hide();
            });
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a typical CRUD app, I would like to add a link next
I have the typical HTML "contact me" page, i.e. name, e-mail address and message.
I have a typical form_for for registering user. But in the end I would
I have a typical Parent contains many Children (List) relationship. How do I tell
I have typical parent and child categories setup as follows: Food potatoes corn beats
I have typical login screen. I was able to use imeOptions to allow user
I have a typical textfield in an iphone app, and in ViewWillAppear I would
I have a typical ruby project and I would like to include a submodule
I have a typical N-M relationship structure like this: two independent tables: Table Client:
This code compiles but looks very strange. I have a typical and simple parent/child

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.