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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:03:49+00:00 2026-05-27T21:03:49+00:00

I asked a question yesterday on here and got some awsome help, but I

  • 0

I asked a question yesterday on here and got some awsome help, but I need more help concerning more or less the same, only a bit different.

This is my old thread.

So ye, I made this and the idea is that you can customize the table to see it the way you want. for now its possible to drag the columns to change the order and its possible to order the columns on alphabet or high/low. Since I got help here, its now also possible to hide the columns.

Now I want to make the hiding process a bit more smooth, since its hard to see if something is hidden after a click if you use no animation. I use .fadeOut(200); now, but when the fading is done the column just ‘jumps’ to fill the gap, is it possible to animate this in some sort?

Edit: After thinking some more, I thought that I could just loop a -1px width untill the element’s width is 1px and then just hide it, but for some reason that wont work, the table doesnt respond to .width(xxx); or .css(‘width’, ‘xxx’);. It does change the value, but the td keeps the same width.

  • 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-05-27T21:03:49+00:00Added an answer on May 27, 2026 at 9:03 pm

    This is somewhat of a workaround, and there might be a better solution, but here it is anyway:

    1. Animate the opacity to 0.0. Fadeout does the same, but it also sets display:none after completely fading out. It is the display:none that causes the adjacent column to jump and fill in the gap.

    2. Animating will cause your hidden div to remain there. Now that it is no longer visible, animate its width to 0. This will cause the adjacent div to smoothly take over its place.

    3. Once width is 0, set display:none

    Here’s a working sample I whipped up. Adjust accordingly to animate width: http://jsfiddle.net/x7BEv/8/

    Here’s how the magic happens:

    $(document).ready(function(){
        $('#button').click(function(){
            $('#upper').animate({opacity:0.0},'slow').animate({height:'0px'},'slow',allDone);
        });
    });
    
    function allDone()
    {
        $('#upper').hide();
    }
    

    I’m not sure how important the allDone() method is. You could probably do away with it.

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

Sidebar

Related Questions

Yesterday I asked a question here that got more momentum that what I thought
I asked a question yesterday which got answers but didnt answer the main point.
I asked a similar question yesterday, but recognize that i need to rephase it
I asked a fairly poor question yesterday, but I still have the same general
I asked this question yesterday got a pretty good answer but can't figure out
I asked this question yesterday, looking if more people can help me out. I
I asked a question earlier yesterday and got some very good answers for sure.
I've asked this question yesterday and got lots of good answers, only I just
I asked a similar question yesterday but I included some code that basically took
I posted a question up yesterday that asked for some help on an image

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.