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

  • Home
  • SEARCH
  • 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 8091837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:09:25+00:00 2026-06-05T20:09:25+00:00

Basically what i am trying to achieve is having the ul menu on the

  • 0

Basically what i am trying to achieve is having the ul menu on the left side of my content div, at the start only one li should be visible.
Once clicked it has to slide out or a sort of animation and be replaced by 4 li that contain the different navigation

(function($){
    $(function(){

        $('li.dropdown').click(function() {
            $(this).fadeOut('slow')
                    .siblings('li.stage2').css('display', 'block');
        });
    });
})(jQuery);

this currently does it but the siblings coming in isn’t smooth and when the fadOut animation is over they jump in the place of the other, any help would be appreciated.

EDIT
Not a drop down menu.

  • 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-05T20:09:26+00:00Added an answer on June 5, 2026 at 8:09 pm

    Kindly take a look at this code. I built your code fragment and came up with this.

    CSS:

    ul { width: 200px; margin: 20px 0 0 20px; }
    li { color: #fff; text-align: center; background-color: #000; border-bottom: 1px dotted #fff; }
    li.stage2 { background-color: #0000ff; display: none; }
    

    ​

    HTML:

    <ul id="menu">
        <li class="dropdown">First Stage Menu</li>
        <li class="stage2">Second Stage - 1</li>
        <li class="stage2">Second Stage - 2</li>
        <li class="stage2">Second Stage - 3</li>
        <li class="stage2">Second Stage - 4</li>
    </ul>
    

    JS:

    $(document).ready(function() {
        $('li.dropdown').click(function() {
            $(this).animate({opacity:0},1000);
            $(this).siblings('li.stage2').fadeIn(1000);
            $(this).parent().animate({marginTop: '-=20'},1000);
        });​
    });
    

    See it in action here: http://jsfiddle.net/P9TQA/1/
    Good luck.

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

Sidebar

Related Questions

I'm trying to achieve an image flowing out of a div. Basically, in my
I'm basically trying to do a dropdown jquery plugin. HTML <script type='text/javascript' src='script.js'></script> <div
I'm trying to extract specific fields from my file. Basically, output fields only containing
I am basically trying to achieve what this page has: When clicked on an
I'm basically trying to achieve this effect. It can be done with pretty much
I'm trying to achieve the following layout without tables or JavaScript. It's basically the
Basically this is what I am trying to achieve. classname@address(?)[original toString() ], object's name,
what i am trying to achieve is basically mark the location of all the
I am trying to achieve a custom URL structure with Wordpress. Basically, my site
I'm basically trying to achieve the following scrollable layout and am looking for some

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.