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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:44:07+00:00 2026-06-14T23:44:07+00:00

I am trying to apply some fancy looking UI stuff to my web application,

  • 0

I am trying to apply some fancy looking UI stuff to my web application, and I want a menu that, slides down and fades in, or, slides up and fades out at the same time

I tried this…

if($('#Menu').css("display") == "none") {
    $('#Menu').slideDown(250).fadeIn(250);
} else {
    $('#Menu').slideUp(250).fadeOut(250);
}

…it didn’t work. Only one effect occurs…Can anyone explain if it is possible to chain together effects in this way, or suggest a workaround?

  • 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-14T23:44:09+00:00Added an answer on June 14, 2026 at 11:44 pm

    To acheive this you’ll want to use jQuery’s .animate() function. Something like this;

    if ($('#Menu').css('opacity') == 1) {
        $('#Menu').animate({
            opacity: 0,
            height: '0'
        }, 500, function() {
            // animation complete
        });
    } else {
        $('#Menu').animate({
            opacity: 1,
            height: '200px'
        }, 500, function() {
            // animation complete
        });
    }​
    

    I think you could possibly replace the height value with ‘toggle’ to avoid putting in specific values. However I’ve not used it personally so can’t be sure.

    EDIT:
    ‘toggle’ seems to work fine: http://jsfiddle.net/RjESG/3/

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

Sidebar

Related Questions

I'm trying to apply jquery functions to a drop down menu and for some
I have a given markup that I'm trying to apply to some style on.
I'm trying to apply CSS styles to some HTML snippets that were generated from
i'm trying to apply some module system on my web, using get and include,
What I am trying to find out is the proper syntax to apply some
I am trying to apply some javaScript on an element that initially has a
I am trying to apply some transformations on images using a CGContextRef. I am
i am trying to apply some condition for an Auto generated textfield, the script
I'm trying to cut a xml into parts and then apply it some transformations.
I'm trying to simply draw some text with a stroke and then apply a

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.