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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:43:32+00:00 2026-05-16T14:43:32+00:00

When UL.chapters is ‘slideDown’, have the first ‘chapters LI’ animate the ‘left’ property to

  • 0

When UL.chapters is ‘slideDown’, have the first ‘chapters LI’ animate the ‘left’ property to 20px, then animate back to 0px, then have the second LI do the same thing, then have the third, and so-on. with my code, they all animate directly after UL.chapters slides down, how do I make them do their animation 1 at a time, with the second not starting until the first has finished, etc.

$('h1').click(function() {
    $('UL.chapters').slideDown(500);
    $('.chapters LI').each(function() {
        $(this).animate({'left':'20px'});
        $(this).animate({'left':'0px'});
    });
});

code updated.

  • 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-16T14:43:32+00:00Added an answer on May 16, 2026 at 2:43 pm

    Try this:

    $(function() {
        $('h1').click(function() {
            $('.chapters').slideDown(500, function() {
                doSlide($('.chapters li:first'));
            });
        });
    
    });
    
    
    function doSlide(current) {
        $(current).animate({
            'left': '20px'
        }, function() {
            $(current).animate({
                'left': '0px'
            }, function() {
                doSlide($(current).next('li'));
            });
        });
    }
    

    This calls the slide animation function on the first <li> and then in the callback for the animation that slides it back to the starting position, it calls the function on the next <li>.

    Here’s a demo of it in action: http://jsfiddle.net/CBNgR/

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

Sidebar

Related Questions

I'm using counterCache to track the number of chapters that have been posted to
I have a Book model, which has_many Chapters (which belong_to a Book). I want
I'm re-reading the first few chapters of Cocoa Programming for Mac OS X and
I have a thesis in which I want to group some chapters together, using
Ha ii ,i am doing a reader application which have chapters in it,i have
I have a text of law, with Chapters and Articles. Chapter 1. Something Article
I'm trying to retrieve books from one table and left join the chapters table.
I have the following in my routes.rb map.resources :novels do |novel| novel.resources :chapters end
I have the following query: SELECT m.*, COUNT(c.chapter_nr) as chapters, MAX(c.chapter_nr) as latest_chapter FROM
I have the following markup <div class=content chapters current-tab> <div class=right> <div id=chapters-container-29 style=>

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.