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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:36:03+00:00 2026-06-09T11:36:03+00:00

Here is the problem: jsFiddle What I want is the yellow height to be

  • 0

Here is the problem: jsFiddle

What I want is the yellow height to be changed from 60px to 20px only AFTER it was slided down (it slides on click). How to fix?

 $(document).ready(function ()
   {
     $('#slide-link').click(function(){
       $(this).animate({ top: $(window).height()-40 },5000)
       $('#sliderWrapper').stop().hide("slide", { direction:"down" }, 5000); 
       $('#slide-link').height(20)
      //I want 20px to become after #sliderWrapper slided down, not on click
      //That's why I put $('#slide-link').height(20) as the last line
      // But it triggers asap. How to fix?
    })
})​

As far as I see, $('#slide-link').height(20) does NOT wait until $('#sliderWrapper').stop().hide("slide", { direction:"down" }, 5000);
is finished.

P.S. $('#slide-link').delay(5000).height(20) does NOT help either. Why? How to fix?

  • 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-09T11:36:04+00:00Added an answer on June 9, 2026 at 11:36 am

    .delay() only affects functions that use the animation queue. However, .height() is not animation-related at all and thus doesn’t use that queue.

    What you want is the callback of .hide() which triggers after the animation has completed:

    $('#sliderWrapper').stop().hide("slide", {
        direction: "down"
    }, 5000, function() {
        $('#slide-link').height(20)
    });
    

    Demo: http://jsfiddle.net/ThiefMaster/DDeqU/3/

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

Sidebar

Related Questions

Here you can see the problem: http://jsfiddle.net/kAQrX/1/ I want the magnifier, search text and
I created a simple demo here that demonstrates the problem: http://jsfiddle.net/boblauer/eCugY/ Basically, I want
Here is an example page: http://jsfiddle.net/SkeLLLa/pwfH2/ I want to set 100% height for the
Here is the problem: http://jsfiddle.net/STG22/3/ I want that span would not split in two
I can't find any solution to this problem. Here's the render I want: http://jsfiddle.net/kQSxb/
I want make validation jquery without using from plugin , problem is here that
Another Vimeo-related problem from a javascript noob... I've set my problem up here: http://jsfiddle.net/ajtTF/
UPDATE: Demo of problem here: http://jsfiddle.net/fdB5Q/embedded/result/ From about 767px to 998px, the form fields
I've created an example of the problem here: http://jsfiddle.net/JustinN/qWeLT/1/ My actual code is hooked
Here's an example of my problem on jsFiddle. I have a table with striped

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.