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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:25:17+00:00 2026-06-09T16:25:17+00:00

As the title says, for some reason a box is not delaying before it

  • 0

As the title says, for some reason a box is not delaying before it slides back up.
Right now if you hover over a div called “#box” with the class of “.boxset”, the div “#slidebox” appears. #slidebox also has the class of “.boxset”. If you move your mouse away from these two divs, #slidebox will slideUp. In this regard it is working beautifully.

I want there to be a delay before it slides back up, but for some reason delay() is not working.

The critical line of code is in the second of the two functions under hover()

I.E:

$('#slidebox').stop().delay(600).slideUp({  

Can anyone see anything wrong?

Thanks a bunch for any help!

The jQuery

$('#slidebox').hide();
$('.boxset').hover(
            function() {  
    $('#slidebox').stop().slideDown(
        {
        duration:600, 
        easing: "swing",
        queue: false,
        complete: function() {
        $('#slidebox').removeAttr('style');}  //End complete   
        } //End object literals
        ); // End slideDown
                    } // End first function
    ,
    function() {
        $('#slidebox').stop().delay(600).slideUp({   
        duration:600, 
        easing: "swing",
        queue: false,
        } // End object literals
                    ); //End slideUp
                    } // End second function   

); // End Hover

The HTML

<div id="box" class="boxset"></div>
<div id="slidebox" class="boxset"></div>

The CSS

#box {
    width: 100%;
    height: 35px;
    background-color: orange;
    drop-shadow: 2px 2px 1px rgba(0,0,0,.25);
    border-radius: 10px 0px 10px 0px;
    color: white;
    diplay:block;
    text-align: right;

}

#slidebox { 
    width:100%;
    height: 100px;
    background-color: rgba(23,34,1, .1);
    border-radius: 10px 10px 0px 10px;
    display: block;}
  • 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-09T16:25:18+00:00Added an answer on June 9, 2026 at 4:25 pm

    I think in this case, you want to use a setTimeout.

    var timeOut;
    $('.boxset').hover(
        function() {
            clearTimeout(timeOut);
            $('#slidebox').stop().slideDown({
                duration:600, 
                easing: "swing",
                queue: false,
                complete: function() {
                    $('#slidebox').removeAttr('style');}  //End complete   
            });
        },
        function() {
            $('#slidebox').stop();
            timeOut=setTimeout(function(){
                $('#slidebox').slideUp({  
                    duration:600, 
                    easing: "swing",
                    queue: false,
                });
            }, 600);
        }
    

    http://jsfiddle.net/HDLCE/1/

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

Sidebar

Related Questions

As title says for some purpose I need to get the size of request/response
Like the title says I'm having some trouble printing out symbol codes and their
I think the title says it, as well...but of course some more explanation assume
I am working on my Page not found 404 template. For some reason my
As the title says, I want to parse some Java source code in Java.
As the title says, I need some help setting up my ViewModelLocator. It's a
As the title says, I am just a little curious...I have seen some European
Just like the title says. Because buildin widgets do not really fit, what I
As the title says, here's some code: - (void)refreshMap { NSLog(@refreshing); [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
As the title says, i am having some problems with serializing my auto generated

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.