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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:58:31+00:00 2026-06-12T06:58:31+00:00

I am putting together a featured content slider element and while technically everything is

  • 0

I am putting together a featured content slider element and while technically everything is working fine, I am however still experiencing animation build up when the nav buttons are clicked quickly. Here is my code:

this.LRSliderScrollVert = function(j) {
    var viewOutside = GetObject(this.sliderObjectId);
    if (parseInt(viewOutside.style.top) == 1 && j == 1){
        //do nothing
    } else if (parseInt(viewOutside.style.top) == this.sliderBottomLimit && j == -1) {

    } else {
        //viewOutside.style.top = parseInt(viewOutside.style.top) + j +'px';
        var total = parseInt(viewOutside.style.top) + j + 'px';
        $(viewOutside).stop().animate({
            top: total
        }, 700, 'swing');
    }
}

As you can see, I am already using stop() but it doesn’t seem to be giving me my desired results, which is one click calls the animation and no other calls to the animate function will be processed until the first animation has been completed.

I have tried stop(true,true) as well with no difference in results.

Any help would be greatly appreciated. Thank you.

  • 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-12T06:58:32+00:00Added an answer on June 12, 2026 at 6:58 am

    .stop(true, true) stops the currently running animation, advances it to the end and removes it from the animation queue. That does not sound like what you are asking to do.

    If you want subsequent animations to go AFTER the one in progress completes, then just remove the .stop() as the new animations will just get added to the queue after the current one.

    If you want subsequent animations to not start at all if the object is currently animating, then you can check to see if the object is currently animating and, if so, avoid starting another animation.

    To ignore any future animation while it is still animating from the last click, you can do this:

    this.LRSliderScrollVert = function(j) {
        var viewOutside = GetObject(this.sliderObjectId);
        if (parseInt(viewOutside.style.top) == 1 && j == 1){
            //do nothing
        } else if (parseInt(viewOutside.style.top) == this.sliderBottomLimit && j == -1) {
    
        } else {
            var total = parseInt(viewOutside.style.top) + j + 'px';
            // remove any objects from the selector that are currently animating
            // if there are none left, then it will do nothing
            $(viewOutside).not(":animated").animate({
                top: total
            }, 700, 'swing');
        }
    }
    

    I removed the .stop() because that’s not what you want. That would stop the current animation, but you say you want it to continue. What you want to skip is any future animations while the current one is running.

    I added .not(":animated") to remove any objects from the selector that are currently animating. If your one object is animating, this will leave an empty jQuery object and will then do nothing when you call the .animate() method. This just saves a little code over testing .is(":animated") and using an if statement on that result.

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

Sidebar

Related Questions

While putting together a Boggle solver, I ran into some strange behavior I was
I am currently putting together a website for a friend. It is working ok
I putting together a page that will display a set of stored values. I
I'm putting together a demo web-app. I've created a certificate signed by my own
I am putting together a fairly simple web app that uses user inputted data
I'm just putting together a little POC project, and I'm having some weird issues
I am putting together a backbone example in which models are created edited and
I'm putting together a JavaScript object called ListBox which takes a two-dimensional array, and
I am putting together a technical analysis library that I hope others may use
I'm putting together my deployment plan for a major deployment next week (basically taking

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.