Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    2
    Member #
    25175
    hi, could anyone help me to add a fadein to my script. i want to make the sideBarContents fade into view on clicking the sidebar tab which is is set to slide into the screen when clicked but i cant work out how to combine the animated slide in it does now with a .fadein set on the sideBarContents.

    i'm slowly getting better at this stuff but still get stuck alot and would be really greatful if someone could help me with this problem.

    thanx, Andy

    Code:
    var isExtended = 0;
    
    $(document).ready(function(){
            $("#sideBarTab").click(function(){
                            $("#sideBarContents").animate({
                                    "width":"toggle"},{duration:1500,queue:true,easing:'swing'}
                            );
                            
                            if(isExtended==0){
                                    $('#sideBarTab').html($('#sideBarTab').html().replace(/(\.[^.]+)$/, '-active$1'));
                                    isExtended++;
                            }
                            else{
                                    $('#sideBarTab').html($('#sideBarTab').html().replace(/-active(\.[^.]+)$/, '$1'));
                                    isExtended=0;
                            }
                    }
            );
    });

  2.  

  3. #2
    Junior Member
    Join Date
    Nov 2010
    Posts
    2
    Member #
    25175
    if it helps here's the code i wanted to add:

    Code:
    $(document).ready(function(){
    $("#sideBarTab").click(function(){
    $("div").fadeIn(3000, function () {
    $("span").fadeIn(100);
    });
    return false;
    });


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:28 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com