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

  • Home
  • SEARCH
  • 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 7797041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:33:24+00:00 2026-06-01T23:33:24+00:00

I built a jQuery component composed of a set of 3 text boxes, laid

  • 0

I built a jQuery component composed of a set of 3 text boxes, laid out against a graphical background div. Hovering each of the boxes swaps the corresponding background graphic related to the box. The animation is done using fadeIn/fadeOut callbacks (fadeIn occurs once fadeOut is done).

The problem I’m experiencing is that a quick pass of the mouse from box #1 to box #3, across box #2, unnecessarily engages the image swap related to box #2, and since the fades are set to smooth, sometimes it takes quite a while before all image swaps are completed. Of course, I’m saying it in the layman’s (unqualified web user) words – jQuery does not know what is ‘unnecessary’. What I really mean is to ask whether there is a way to act smart and – you name it: – queue the events, perhaps flush the ones that didn’t make it on time before new came along, or maybe stopPropagation, or what-not.

I haven’t worked much with events, so excuse my general question. I can provide some sample code if it really helps.

Thanks.

  • 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-01T23:33:25+00:00Added an answer on June 1, 2026 at 11:33 pm

    If you provided your HTML and javascript, we could advise much more specifically, but you probably need to add .stop(true) before starting any new animations. This will stop any previous animations and remove them from the animation queue so the next animation can start right away.

    For example, instead of this:

    $("whatever").fadeIn();
    

    You would do this:

    $("whatever").stop(true).fadeIn();
    

    Without the .stop(true), animations can pile up in the queue if the next one starts before the previous one finished which can easily be the case in hover triggered animations.

    See jquery doc for more info on .stop().

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

Sidebar

Related Questions

I built my first site with jQuery and overall it turned out quite well
I am using jQuery to fade out a notification bubble I built. The first
Im using the built in jQuery validation <script src=@Url.Content(~/Scripts/jquery.validate.min.js) type=text/javascript></script> <script src=@Url.Content(~/Scripts/jquery.validate.unobtrusive.min.js) type=text/javascript></script> Works
I have just built a custom autocomplete component using jquery. My problem is that
I am using Jquery buttons set, which is built into Jquery UI. And selectmenu
I built a Jquery dropdown menu using this tutorial . It works across browsers
I've built a jQuery selector for a function which looks like this: $('html').not('.table-main tr[selected]').mousedown(
I can write something, I'm asking if something is already built into jQuery.
I have built a simple menu in jQuery http://vanquish.websitewelcome.com/~toberua/ Here is a sample of
I built a featured tabbing system (4 tabs) with jquery. It works manually but

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.