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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:16:04+00:00 2026-06-15T08:16:04+00:00

Theoretically speaking let’s say I have 3 javascript (jquery) functions that create visual effects.

  • 0

Theoretically speaking let’s say I have 3 javascript (jquery) functions that create visual effects. If I want one of them to render after the first two have been rendered, how can I do this?

Javascript:

 <script type="text/javascript">

 $(function() {
 var transition = 'slow';
 var target1 = $('#somediv');
 var target2 = $('#second_div');
 var target3 = $('#third_div');
 target1.delay(5000).fadeIn();
 target2.delay(target2Time).fadeIn();
 target3.delay(target3Time).fadeIn();
 }); 
 </script>

 <script type="text/javascript">
 $.fn.teletype = function(opts){
 var $this = this,
    defaults = {
        animDelay: 50
    },
    settings = $.extend(defaults, opts);

 $.each(settings.text, function(i, letter){
    setTimeout(function(){
        $this.html($this.html() + letter);
    }, settings.animDelay * i);
 });
 };

 $(function(){
 $('#second_div').teletype({
    animDelay: 200,
    text: 'Hello, this is your classmate!'
 });
 });
</script>

HTML:

 <div id="somediv">Some Content</div>
 <div id="second_div"></div>
 <div id="third_div">Some third content</div>
  • 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-15T08:16:05+00:00Added an answer on June 15, 2026 at 8:16 am

    I’ve made this demo. It demonstrates how to make one animation wait for two other animations to finish:

    var anim1 = $( '#elem1' ).animate({ width: 200 }, 3000 );
    var anim2 = $( '#elem2' ).animate({ width: 200 }, 2000 );
    
    $.when( anim1, anim2 ).done(function () {
       $( '#elem3' ).animate({ width: 200 }, 1000 );
    });
    

    Live demo: http://jsfiddle.net/m67Ua/


    You can apply the same technique for your fading requirements:

    var fade1 = $( '#img1' ).fadeIn( 3000 );
    var fade2 = $( '#img2' ).fadeIn( 2000 );
    
    $.when( fade1, fade2 ).done(function () {
       $( '#img3' ).fadeIn( 1000 );
    });
    

    Live demo: http://jsfiddle.net/m67Ua/1/

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

Sidebar

Related Questions

Theoretically does hashing a unique value yield a unique value? Let's say I have
I have an interesting question. Theoretically, let's say you have a navigation bar on
A theoretically question: I have a C# Windows Form app, that sends back some
Theoretically I can say that free(ptr); free(ptr); is a memory corruption since we are
I want to write a function that parses a (theoretically) unknown XML data structure
I heard someone mention that one could theoretically position an invisible iframe on top
I was wondering if someone knew of a way to theoretically have one eCommerce
I know that theoretically one can put what he wants in the method, but
Let's say that I'm writing a library in C# and I don't know who
It is theoretically possible to have a converter, that scans the color areas of

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.