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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:53:19+00:00 2026-05-23T16:53:19+00:00

So the idea is to fade each image out from the bottom.. obviously it’s

  • 0

So the idea is to fade each image out from the bottom.. obviously it’s going to have to backwardly traverse the array. However, i can’t seem to figure it out at the moment. The idea is that it would pause after running the fadeOut() function, I thought set time out would work, but firebug gives me this error:
useless setTimeout call (missing quotes around argument?)

Line 262.
I even went as far as to not use a $.each loop and use a for (i=0 loop

<script type="text/javascript">
    //Bottom Nav functions
    $(document).ready(function(){

        $('#bottomNav a:eq(0)').click(function(){

        var arti = $('#aHolder article');
        var amt = arti.length;
        var i = 0;

            for (i=0;i<amt;i++){

            $('#aHolder article:eq('+i+')').fadeOut();
            setTimeout(300);

            }


        });

    });


</script>
  • 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-23T16:53:19+00:00Added an answer on May 23, 2026 at 4:53 pm

    Something like this should do:

    var i = $('#aHolder article').length,
    interval = setInterval(function () {
        if (i-- <= 0) {
            clearInterval(interval);
            return;
        }
        $('#aHolder article:eq(' + i + ')').fadeOut();
    }, 300);
    

    Delayed execution in a loop is best done with an interval. Once you have reached your terminating condition, you just clear it.

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

Sidebar

Related Questions

I want to have an image fade out slowly on load. Idea is that
I have programmed a very simple script with jQuery. The idea is to fade
I'm trying to replicate twitter's fade out layer at the bottom of the feed
I have a view which need to fade out before I remove it, here
Idea: I want to make smth like real time electronic blackboard. Many users have
In IDEA 11, what is the difference between Import project from external model and
Any idea why I can't see H1? <div id=getTheProducts style=clear: both; margin-top: 15px; margin-bottom:
I have a really weird situation. The idea is there is a scroller that
I am registering each Ajax call with Ajax.Responders.register of the Prototype framework. The idea
I have an idea to implement a deep zoom type interface hosted in a

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.