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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:11:05+00:00 2026-05-23T06:11:05+00:00

I am using a function in this instance to loop the animation but it

  • 0

I am using a function in this instance to loop the animation but it doesn’t seem to trigger off anything, it just stops on the last frame and does nothing, could you advise the best course of action to loop the below code ?

    function doReplay(){
        $('body')
        .fadeTo(0,1,function(){
            $('#jqContent').load($welcome + ' #jqContent', function(){

                $('#telephoneNumber').load($welcome + ' #telephoneNumber');
                $('#minicomNumber').load($welcome + ' #minicomNumber');

                    Cufon.replace('.landing .nav, .quicklinks h3, .header .strap2, .header ul li a, .hero h2, legend, h1, .module h2, .module h3, blockquote p span, .tel strong', {hover: true});
                    //confiuration
                    $('#natWestJQ img').css({ "opacity" : 0, "display" : "block" });
                    $('.hero').css({ "position" : "relative" });
                    $('.hero h2').css({ "position" : "absolute", "z-index" : "9999", "width" : "400px"});
                    $('.hero p').css({ "position" : "absolute", "top" : "87px", "z-index" : "9999" });  

                    //welcome animation
                        //0s
                        $('#wcMale').css({
                            "bottom": "-30px",
                            "display": "block"
                        }).addClass('msieOn').animate({
                            "bottom": "0px",
                            "opacity": 1
                        }, 250, function() {
                            $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                        });

                        //0.25s
                        $('#wcMale2').css({
                            "bottom": "-30px",
                            "display": "block"
                        }).addClass('msieOn').delay(250).animate({
                            "bottom": "0px",
                            "opacity": 1
                        }, 250, function() {
                            $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                        });
                        $('#wcPhone').css({
                            "bottom": "-26px",
                            "display": "block"
                        }).addClass('msieOn').delay(250).animate({
                            "bottom": "16px",
                            "opacity": 1
                        }, 250, function() {
                            $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                        });

                        //0.5s
                        $('#wcBox').css({
                            "bottom": "-30px",
                            "display": "block"
                        }).addClass('msieOn').delay(500).animate({
                            "bottom": "0px",
                            "opacity": 1
                        }, 250, function() {
                            $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                        });

                        //0.75s
                        $('#wcChart').css({
                            "bottom": "9px",
                            "display": "block"
                        }).addClass('msieOn').delay(750).animate({
                            "bottom": "39px",
                            "opacity": 1
                        }, 250, function() {
                            $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                        });

                        //1s
                        $('#wcBelt').css({
                            "bottom": "50px",
                            "display": "block"
                        }).addClass('msieOn').delay(1000).animate({
                            "bottom": "80px",
                            "opacity": 1
                        }, 250, function() {
                            $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                        });

                        //1.25s
                        $('#wcBP').css({
                            "bottom": "-30px",
                            "display": "block"
                        }).addClass('msieOn').delay(1250).animate({
                            "bottom": "0px",
                            "opacity": 1
                        }, 250, function() {
                            $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                        });
                        $('#wcWH').css({
                            "bottom": "70px",
                            "display": "block"
                        }).addClass('msieOn').delay(1250).animate({
                            "bottom": "100px",
                            "opacity": 1
                        }, 250, function() {
                            $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                        });

                        //1.5s
                        $('#wcFactory').css({
                            "bottom": "99px",
                            "display": "block"
                        }).addClass('msieOn').delay(1500).animate({
                            "bottom": "119px",
                            "opacity": 1
                        }, 250, function() {
                            $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                        });

                        //1.75s
                        $('#wcLaptop').css({
                            "bottom": "96px",
                            "display": "block"
                        }).addClass('msieOn').delay(1750).animate({
                            "bottom": "126px",
                            "opacity": 1
                        }, 250, function() {
                            $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                        });

                        //2s
                        $('#wcOffice').css({
                            "bottom": "118px",
                            "display": "block"
                        }).addClass('msieOn').delay(2000).animate({
                            "bottom": "148px",
                            "opacity": 1
                        }, 250, function() {
                            $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                        });
            });
        })
        .delay(1000)
        .fadeTo(0,1,function(){
            $('#jqContent').load($startup + ' #jqContent', function(){

                $('#telephoneNumber').load($startup + ' #telephoneNumber');
                $('#minicomNumber').load($startup + ' #minicomNumber');
                Cufon.replace('.landing .nav, .quicklinks h3, .header .strap2, .header ul li a, .hero h2, legend, h1, .module h2, .module h3, blockquote p span, .tel strong', {hover: true});
                //confiuration
                $('#natWestJQ img').css({ "opacity" : 0, "display" : "block" });
                $('.hero').css({ "position" : "relative" });
                $('.hero h2').css({ "position" : "absolute", "z-index" : "9999"});
                $('.hero p').css({ "position" : "absolute", "top" : "87px", "z-index" : "9999" });

                //Startups Animation
                    //0s
                    $('#suMale').css({
                        "bottom": "-30px",
                        "display": "block"
                    }).addClass('msieOn').animate({
                        "bottom": "0px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });

                    //0.25s
                    $('#suClipBoard').css({
                        "bottom": "-17px",
                        "display": "block"
                    }).addClass('msieOn').delay(250).animate({
                        "bottom": "13px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });    

                    //0.5s
                    $('#suBPS').css({
                        "bottom": "77px",
                        "display": "block"
                    }).addClass('msieOn').delay(500).animate({
                        "bottom": "107px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });    

                    //0.75s
                    $('#suToolBox').css({
                        "bottom": "51px",
                        "display": "block"
                    }).addClass('msieOn').delay(750).animate({
                        "bottom": "81px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    }); 

                    //1s
                    $('#suBP').css({
                        "bottom": "133px",
                        "display": "block"
                    }).addClass('msieOn').delay(1000).animate({
                        "bottom": "163px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    }); 

            });
        })
        .delay(1000)
        .fadeTo(0,1,function(){
            $('#jqContent').load($to2m + ' #jqContent', function(){

                $('#telephoneNumber').load($to2m + ' #telephoneNumber');
                $('#minicomNumber').load($to2m + ' #minicomNumber');

                Cufon.replace('.landing .nav, .quicklinks h3, .header .strap2, .header ul li a, .hero h2, legend, h1, .module h2, .module h3, blockquote p span, .tel strong', {hover: true});
                $('#natWestJQ img').css({ "opacity" : 0, "display" : "block" });
                $('.hero').css({ "position" : "relative" });
                $('.hero h2').css({ "position" : "absolute", "z-index" : "9999"});
                $('.hero p').css({ "position" : "absolute", "top" : "87px", "z-index" : "9999" });  


                //upto 2million turnover animation
                    //0s
                    $('#to2mWoman').css({
                        "bottom": "-30px",
                        "display": "block"
                    }).addClass('msieOn').animate({
                        "bottom": "0px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    }); 

                    //0.25s
                    $('#to2mBag').css({
                        "bottom": "14px",
                        "display": "block"
                    }).addClass('msieOn').delay(250).animate({
                        "bottom": "44px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });    
                    $('#to2mTape').css({
                        "bottom": "28px",
                        "display": "block"
                    }).addClass('msieOn').delay(250).animate({
                        "bottom": "58px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });    

                    //0.5s
                    $('#to2mPeople').css({
                        "bottom": "13px",
                        "display": "block"
                    }).addClass('msieOn').delay(500).animate({
                        "bottom": "43px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });    

                    //0.75s
                    $('#to2mThread').css({
                        "bottom": "40px",
                        "display": "block"
                    }).addClass('msieOn').delay(750).animate({
                        "bottom": "70px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });

                    $('#to2mTable').css({
                        "bottom": "80px",
                        "display": "block"
                    }).addClass('msieOn').delay(750).animate({
                        "bottom": "118px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });

                    //1s
                    $('#to2mCloth').css({
                        "bottom": "37px",
                        "display": "block"
                    }).addClass('msieOn').delay(1000).animate({
                        "bottom": "67px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    }); 

                    //1.25s
                    $('#to2mClipboard').css({
                        "bottom": "84px",
                        "display": "block"
                    }).addClass('msieOn').delay(1250).animate({
                        "bottom": "114px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    }); 
                    $('#to2mManequin').css({
                        "bottom": "135px",
                        "display": "block"
                    }).addClass('msieOn').delay(1250).animate({
                        "bottom": "165px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });

                    //1.5s
                    $('#to2mBuilding').css({
                        "bottom": "26px",
                        "display": "block"
                    }).addClass('msieOn').delay(1500).animate({
                        "bottom": "60px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    }); 

                    //1.75s
                    $('#to2mBlueprint').css({
                        "bottom": "130px",
                        "display": "block"
                    }).addClass('msieOn').delay(1750).animate({
                        "bottom": "160px",
                        "opacity": 1
                    }, 500, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    }); 
                    $('#to2mClothes').css({
                        "bottom": "43px",
                        "display": "block"
                    }).addClass('msieOn').delay(1750).animate({
                        "bottom": "73px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    }); 

                    //2s
                    $('#to2mStore').css({
                        "bottom": "141px",
                        "display": "block"
                    }).addClass('msieOn').delay(2000).animate({
                        "bottom": "171px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });  

            });
        })
        .delay(1000)
        .fadeTo(0,1, function(){
                $('#telephoneNumber').load($to25m + ' #telephoneNumber');
                $('#minicomNumber').load($to25m + ' #minicomNumber');

                $('#jqContent').load($to25m + ' #jqContent', function(){
                    //configuration
                    $('#natWestJQ img').css({ "opacity" : 0, "display" : "block" });
                    $('.hero').css({ "position" : "relative" });
                    $('.hero h2').css({ "position" : "absolute", "z-index" : "9999"});
                    $('.hero p').css({ "position" : "absolute", "top" : "87px", "z-index" : "9999" });  
                    Cufon.replace('.landing .nav, .quicklinks h3, .header .strap2, .header ul li a, .hero h2, legend, h1, .module h2, .module h3, blockquote p span, .tel strong', {hover: true});
                    //upto 25million turnover
                    //0s
                    $('#to25Male').css({
                        "bottom": "-30px",
                        "display": "block"
                    }).addClass('msieOn').animate({
                        "bottom": "0px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });

                    //0.25s
                    $('#to25Van').css({
                        "bottom": "-10px",
                        "display": "block"
                    }).addClass('msieOn').delay(250).animate({
                        "bottom": "20px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });
                    $('#to25Ppl').css({
                        "bottom": "67px",
                        "display": "block"
                    }).addClass('msieOn').delay(500).animate({
                        "bottom": "97px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });

                    //0.5s
                    $('#to25Phone').css({
                        "bottom": "34px",
                        "display": "block"
                    }).addClass('msieOn').delay(500).animate({
                        "bottom": "64px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });

                    //0.75s
                    $('#to25Lorry').css({
                        "bottom": "107px",
                        "display": "block"
                    }).addClass('msieOn').delay(750).animate({
                        "bottom": "137px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });
                    $('#to25Office').css({
                        "bottom": "50px",
                        "display": "block"
                    }).addClass('msieOn').delay(750).animate({
                        "bottom": "80px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });

                    //1s
                    $('#to25Server').css({
                        "bottom": "58px",
                        "display": "block"
                    }).addClass('msieOn').delay(1000).animate({
                        "bottom": "88px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });

                    //1.25s
                    $('#to25Crane').css({
                        "bottom": "125px",
                        "display": "block"
                    }).addClass('msieOn').delay(1250).animate({
                        "bottom": "155px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });
                    $('#to25WH').css({
                        "bottom": "79px",
                        "display": "block"
                    }).addClass('msieOn').delay(1250).animate({
                        "bottom": "109px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });

                    //1.5s
                    $('#to25Work').css({
                        "bottom": "-30px",
                        "display": "block"
                    }).addClass('msieOn').delay(1500).animate({
                        "bottom": "0px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });

                    //1.75s
                    $('#to25Building').css({
                        "bottom": "138px",
                        "display": "block"
                    }).addClass('msieOn').delay(1500).animate({
                        "bottom": "168px",
                        "opacity": 1
                    }, 250, function() {
                        $(this).css("filter", "").removeClass('msieOn').addClass('msieOff')
                    });             
            }, doReplay);
        });
    }
    doReplay();
  • 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-23T06:11:05+00:00Added an answer on May 23, 2026 at 6:11 am

    Since you are calling load methods so many times I doubt whether the response will be in the same sequence based on the server load.

    However to fix you problem, fadeTo takes only 3 params and you are passing doReplay as the 4th parameter to the last fadeTo which will do nothing. Try to call doReplay inside the last fadeTo callback or in the load callback of the last fadeTo call.

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

Sidebar

Related Questions

I've been using this function but I'd like to know what's the most efficient
I am trying to load a dynamic library using dlopen function. This library contains
This question discusses encrypting data on the iPhone using the crypt() function. As an
I've written this very simple function to replace a file extension using LINQ in
This is the code I am using to call a function calc in javascript:
I am writing a searching function, and have thought up of this query using
I'm trying to use the Seq.generate_using function but unfortunately, I don't seem to be
I am trying to send a variable with jQuery's getJSON function but it doesn't
What are the steps to estimating using function points? Is there a quick-reference guide
I've got an empty DIV element in which I append images by using function

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.