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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:26:10+00:00 2026-06-04T09:26:10+00:00

Having a spot of bother with the following code. Essentially I have a div

  • 0

Having a spot of bother with the following code.
Essentially I have a div container that is height:40px, when I click on it, it smoothly grows to 320px – this works great, however when the div has grown to full height, I then want the overflow property to change from it’s static state of hidden, to visible.

$(document).ready(function() {
    $('#join').click(function() {
        $('#join').animate({ height: "320px" }, 500);
        $('#join').css('overflow', 'visible');
    })
});​

It does go visible for a few seconds but then disappears, also I want it to happen after the div has grown to full height.

  • 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-04T09:26:12+00:00Added an answer on June 4, 2026 at 9:26 am

    Apply the style inside the animate callback function.. See below,

    $(this).animate({height:"320px"}, 500, function () { //this <- #join
       $(this).css('overflow', 'visible');
    });
    

    Complete code:

    $(document).ready(function() {
       $('#join').click(function() {
           $(this).animate({height:"320px"}, 500, function () {
                $(this).css('overflow', 'visible');
           });
       });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having a slight spot of bother... I have a draggable element that can be
Having a spot of trouble with the following code. The method NextIPID() should simply
Following on from this answer , I am having a spot of bother with
I am having a spot of bother with a code I am developing to
I'm having a spot of bother here. I'm working on a multi-tiered CAB application
I'm having a spot of bother getting anything to log with FirePHP and Zend
Say you have a 2D grid with each spot on the grid having x
I'm having a spot of bother with Python (using for app engine). I'm fairly
I'm having a spot of trouble with a bit of code meant to find
I am having problems which the following code: if(mysql_num_rows(mysql_query(SELECT user_id FROM myTable WHERE user_id

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.