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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:37:47+00:00 2026-05-24T19:37:47+00:00

What I am looking for is to be able to click the buttons before

  • 0

What I am looking for is to be able to click the buttons before the bounce animation is finished and have it start the next one.

I’m aware of jQuery’s .stop(true, true) in order to stop the animation and jump to the end but I’m having trouble with the animation wrapper not being cleaned up. Anyone know a nice solution for this?

This is the basic jQuery code I have now and you can find the context in the jsfiddle below.

$(function(){
    $("#right").click(function(){
        var $next = $(".visible").next();

        if ($next.hasClass("slide")) {
            $(".visible").removeClass("visible").hide();
            $next.addClass('visible').show('bounce', { direction: 'right', times: 3 }, 500);
        }
    });

    $("#left").click(function(){
        var $prev = $(".visible").prev();

        if ($prev.hasClass("slide")) {
            $(".visible").removeClass("visible").hide();
            $prev.addClass('visible').show('bounce', { direction: 'left', times: 3 }, 500);
        }
    });
});

http://jsfiddle.net/bQGtC/2/

I appreciate any help on this.

  • 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-24T19:37:48+00:00Added an answer on May 24, 2026 at 7:37 pm

    Alright I have come up with one solution but it feels pretty damn hacky so I’m gonna hold off marking it as the answer in case someone else comes up with a prettier solution. This code can be DRYed up I know, I’m gonna refactor it some before/if I use it.

    http://jsfiddle.net/bQGtC/7/

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

Sidebar

Related Questions

Rather than have everything in one big dialog, I'm looking at being able to
I am looking for a way to be able to have a list of
I want to be able to create links looking like buttons with dynamic text
How to give click-able effect for the buttons whose background is an image ?
I'm looking to be able to produce a nicely formatted table with rows and
I'm looking to be able to basically change ports that my express app is
I am looking to be able to create two functions, BaseFunction and CallbackFunction where
I am looking for some blog site where i will be able to directly
I am looking for a performance profiler that is able to profile a C++
What I am looking to do is to be able to push and pop

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.