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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:18:26+00:00 2026-05-15T18:18:26+00:00

I need some help on this on how can I animate the following: If

  • 0

I need some help on this on how can I animate the following:

If box1 done fading in 2000ms then that is the time to start animate the box2 the box3 and box4

$(document).ready(function(){
  $('#box1').fadeIn(2000);
  $('#box2').fadeIn(2000);
  $('#box3').fadeIn(2000);
  $('#box4').fadeIn(2000);
});

How can i do this, or give me some link. I am noob in jquery

Thank you all

  • 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-15T18:18:27+00:00Added an answer on May 15, 2026 at 6:18 pm

    The question’s a but unclear, but you can use .delay() to simplify this:

    $(function() {
      $('#box1').fadeIn(2000);
      $('#box2').delay(2000).fadeIn(2000);
      $('#box3').delay(2000).fadeIn(2000);
      $('#box4').delay(2000).fadeIn(2000);
    });
    

    See it in action here. If you meant one then another, then another, just change the delay, like this:

    $(function() {
      $('#box1').fadeIn(2000);
      $('#box2').delay(2000).fadeIn(2000);
      $('#box3').delay(4000).fadeIn(2000);
      $('#box4').delay(6000).fadeIn(2000);
    });
    

    See it in action here. Or, shorten it a bit with .each() using the index parameter it passes to the callback, like this:

    $(function() {
      $('#box1, #box2, #box3, #box4').each(function(i) {
        $(this).delay(2000*i).fadeIn(2000);
      });
    });
    

    See it in action here. Or, improve it further, giving them a class so it’s more extensible, like this:

    $(function() {
      $('.box').each(function(i) {
        $(this).delay(2000*i).fadeIn(2000);
      });
    });
    

    Test that version here 🙂

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

Sidebar

Related Questions

I need some drawings in my tableview. How can i do this. Any help
I need some help with this please I can't get a handle on it.
I have not done much animation, and I need some help with this. I
Need some help with this problem in implementing with XSLT, I had already implemented
I need some help understanding this bit of code pre { white-space: pre; white-space:
I need some help revising this. It keeps only displaying 0s as the temp.
I really need some help with this as I have been trying to fix
We Really need some help on this one: We've Struggled with all the Apple
Im a javascript newbie and would need some help with this simple thing... I
Need some help to solve this. I have a gridview and inside the gridview

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.