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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:33:42+00:00 2026-06-10T14:33:42+00:00

I have two jQuery functions that I’ve built and in testing them, I noticed

  • 0

I have two jQuery functions that I’ve built and in testing them, I noticed that if the tabs are clicked while they have already been fired, they jump up about 10px, then jump back down to normal.

I have searched everywhere, and can’t seem to find a solution that works.

I have the following code:

<div id="zoe">

            <div class="floating-rim-container">

            <a href="#">
                <img src="images/rim-middle.png" class="floating-rim-wrapper-zoe" id="rim-7">
            </a>        
            <a href="#">
                <img src="images/rim-middle.png" class="floating-rim-wrapper-zoe" id="rim-8">
            </a>        
            <a href="#">
                <img src="images/rim-middle.png" class="floating-rim-wrapper-zoe" id="rim-9">
            </a>
            <a href="#">
                <img src="images/rim-middle.png" class="floating-rim-wrapper-zoe" id="rim-10">
            </a>
            <a href="#">
                <img src="images/rim-middle.png" class="floating-rim-wrapper-zoe" id="rim-11">
            </a>
            <a href="#">
                <img src="images/rim-middle.png" class="floating-rim-wrapper-zoe" id="rim-12">
            </a>
                <div class="shadow-container">
                    <img src="images/shadow.png" class="shadow-zoe">
                    <img src="images/shadow.png" class="shadow-zoe">
                    <img src="images/shadow.png" class="shadow-zoe">
                    <img src="images/shadow.png" class="shadow-zoe">
                    <img src="images/shadow.png" class="shadow-zoe">
                    <img src="images/shadow.png" class="shadow-zoe">
                </div>
            </div>
        </div>

I have this CSS:

.floating-rim-container {
    width:960px;
    height:300px;
    margin:-295px auto;
    vertical-align:top;
}
.floating-rim-wrapper-black, 
.floating-rim-wrapper-zoe {
    margin: 50px 0px;
    padding: 0px 23px;
    position:relative;
    left:0;
}
.shadow-black, .shadow-zoe {
    position:relative;
    padding: 0px 8px;
}
#tab-container {
    width:960px;
    margin:0 auto;
    font-family:'helvetica-light',Helvetica,Arial,sans-serif;
}
#blabel-tab {
    background:#3d3d3d;
    border-radius:0 0 15px 15px;
    -webkit-border-radius:0 0 15px 15px;
    border:1px solid rgba(0,0,0,0.6);
    border-top:none;
    padding:6px;
    letter-spacing:2px;
    position:relative;
    z-index:100;
    box-shadow:-2px 2px 4px 1px rgba(0,0,0,0.3);
    -webkit-box-shadow:-2px 2px 4px 1px rgba(0,0,0,0.3);
}
#zoe-tab {
    background:#3d3d3d;
    margin:0px 15px;
    border-radius:0 0 15px 15px;
    -moz-border-radius:0 0 15px 15px;
    -o-border-radius:0 0 15px 15px;
    border:1px solid rgba(0,0,0,0.6);
    border-top:none;
    padding:6px;
    position:relative;
    z-index:15;
    box-shadow:-2px 2px 4px 1px rgba(0,0,0,0.3);
    -webkit-box-shadow:-2px 2px 4px 1px rgba(0,0,0,0.3);
}
#blabel-tab:hover, #zoe-tab:hover {
    background:rgba(0,0,0,0.9);
}
#folder-placeholder {
    width:960px;
    height:275px;
    margin:-26px auto;
    background:#000;
    position:absolute;
    z-index:-1;
}
#folder-black {
    width:960px;
    background:#eee;
    margin:-30px auto;
    border-radius:0 0 10px 10px;
    -webkit-border-radius:0 0 10px 10px;
}
#folder-zoe {
    width:960px;
    margin:0 auto;
    background:#ccc;
    position:relative;
    top:4px;
    z-index:1;
    border-radius:0 0 10px 10px;
    -webkit-border-radius:0 0 10px 10px;
}
#zoe {
    position:relative;
    z-index:20;
}

And this jQuery:

function blabel_init() {
    $("#folder-black").show().animate({
        "height" : "300px"
    },600);
    $("#blabel-tab").animate({
        "top" : "295px"
    },{
        duration: 600,
        complete: function() {
            $("#blacklabel").fadeIn();
        }
    });
}
function blabel_switch() {
    $("#zoe-tab").click(function() {
        $("#blacklabel").fadeOut().promise().done(function() {
            $("#folder-black").animate({
                "height" : "0"
            });
            $("#blabel-tab").animate({
                "top" : "0"
            }).promise().done(function() {
                $("#folder-zoe").animate({
                    "height" : "300px"
                });
                $("#zoe-tab").animate({
                    "top" : "300px"
                },{
                    complete:function() {
                        $("#zoe").fadeIn();
                    }
                });
            });
        });
        return false;
    });
}
function zoe_switch() {
    $("#blabel-tab").click(function() {
        $("#zoe").fadeOut().promise().done(function() {
            $("#folder-zoe").animate({
                "height" : "0"
            });
            $("#zoe-tab").animate({
                "top" : "0"
            }).promise().done(function() {
                $("#folder-black").animate({
                    "height" : "300px"
                });
                $("#blabel-tab").animate({
                    "top" : "295px"
                },{
                    complete:function() {
                        $("#blacklabel").fadeIn();
                    }
                });
            });
        });
        return false;
    });   
}

Any help would be hugely appreciated!

It can be seen at zoewheels.com/beta.

  • 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-10T14:33:43+00:00Added an answer on June 10, 2026 at 2:33 pm

    i think it is because of href="#"
    try replacing with href="javascript:void(0)" . Also if href is not needed remove it

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

Sidebar

Related Questions

I have two buttons that were firing functions once clicked on. jQuery was handling
So I have two jquery functions that bassically do the same, but on 2
I have two Jquery functions that each work independently on a sharepoint page -
Possible Duplicate: jQuery delay between animations I have created two functions: One that animates
I have two functions that loads on document ready. They work fine when they
I have two functions that generate DOM elements. They both attempt to create the
I have two nearly identical javascript functions that are used to initiate a jquery
I have two jQuery functions. The first one below I want to run first,
Assuming I have the following two JQuery functions - The first, which works: $(#myLink_931).click(function
I have two ajax functions that fetch JSON objects using .getJSON and then build

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.