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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:04:42+00:00 2026-06-07T11:04:42+00:00

I know this code is super lame but it was working very well ’till

  • 0

I know this code is super lame but it was working very well ’till now so I kept it.
But now I have too many < li >’s and I can’t add them manually in the js because it’s on wordpress and it depends on the category page so the number of < li >’s changes every time.

My question is; how can I keep that animation and make it work with an undefined number of < li >’s without having to add them manually? And is there a way to stop the scroll bar scrolling-away without using the css overflow-y: hidden ?!

HERE’S THE DEMO:
http://jsfiddle.net/NdRDh/

Thank you very much! Hope you can help me!!

Tom

  • 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-07T11:04:43+00:00Added an answer on June 7, 2026 at 11:04 am

    I’d suggest:

    $(document).ready(
        function() {
            $('li').each(
                function(i) {
                    $(this)
                        .delay(400)
                        .animate(
                            {
                                'top' : '10px'
                            }, 1500 + (500*i));
                });
        });​
    

    JS Fiddle demo.

    Oh, and please note that you’re repeating the same id for all of your li elements: this is invalid HTML, as:

    id = name [CS]

    This attribute assigns a name to an element. This name must be unique in a document.

    (Quoted from: http://www.w3.org/TR/html401/struct/global.html#h-7.5.2)

    References:

    • each().
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have this code but it leaks because I don't know how to
I know this code use to work, I must have accidentally changed something when
Hello everyone don't know why this code works on windows but not on linux
Hi I have this code in my view.. <%=Html.DropDownList(ProductTemplate,new SelectList(Model.ProductTemplate,Value,Text))%> I know if this
I know this sort of code is not best practice, but nevertheless in certain
With this code I can download the file but I should know the file
I have this code and don't know if what I would like to achieve
this code always return '0' i don't know why Dim cur_month = DatePart(DateInterval.Month, Now).ToString()
I know this is a very simple question for you experts,but please forgive me.Im
I have this code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ListView lv =

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.