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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:32:28+00:00 2026-06-18T02:32:28+00:00

Let’s take this script: $(‘a’).hover(function() { $(‘div’).stop(c,j).fadeIn(); }, function() { $(‘div’).stop(c,j).fadeOut(); }); With c=0,j=0

  • 0

Let’s take this script:

$('a').hover(function() {
    $('div').stop(c,j).fadeIn();
}, function() {
    $('div').stop(c,j).fadeOut();
});

With c=0,j=0, if I over a several times, my div fade in and out and in and… yerk.
With c=1,j=1, it almost does what I want, but we got this blinking effect due to the jumpToEnd parameter, and it looks buggy.
So finally, what I want is c=0,j=1, BUT if I over in, and quickly over out and back in, animation is stopped, the next fade function won’t launch and my div is half transparent. Why ?

Another visual example.

I meet this issue often enough, and wonder why I can’t find anything on it. (Last I can remember is a comment on jQuery stop() page, but comments are now removed.)

  • 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-18T02:32:30+00:00Added an answer on June 18, 2026 at 2:32 am

    Here’s a better comparison between all the different usages of .stop(): http://jsfiddle.net/4v8Uk/13/

    <div data-one="0" data-two="0" id="a">a</div>
    <div data-one="1" data-two="0" id="b">b</div>
    <div data-one="1" data-two="1" id="c">c</div>
    <div data-one="0" data-two="1" id="d">d</div>
    

    $("div").hover(function(){
        var d = $(this).data();
        $(this).stop(d.one,d.two).toggle("slow");
    });
    

    options a and b seem to be closer to what you are looking for. (0,0 and 1,0)

    Update: I still don’t have a clear answer as to why it happens, though I believe it happens because jQuery is seeing the element as shown already, therefore it doesn’t show it. Why that doesn’t effect .toggle() i don’t know.

    However, you can fix it by recreating your animation with .animate.

    http://jsfiddle.net/4v8Uk/17/

    $("div").hover(function(){
        var d = $(this).data();
        $(this).stop(d.one,d.two).animate({"opacity":"0", "height":"0px", "width":"0px"},"slow");
    }, function(){
        var d = $(this).data();
        $(this).stop(d.one,d.two).animate({"opacity":"1", "height":"100px", "width":"100px"},"slow");
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Let's say I have a sortable list like this: $(.song-list).sortable({ handle : '.pos_handle', axis
Let's say I have a string like this: var str = /abcd/efgh/ijkl/xxx-1/xxx-2; How do
Let's say I have pseudocode like this: main() { BOOL b = get_bool_from_environment(); //get
Let's say I have an actor like this (Using Akka 2.1 with Scala 2.10):
Let's say I have some text as follows: do this, do that, then this,
Let's suppose that we have multi-site CMS and every website in this CMS having
Let's say I create an object like this: Person: NSString *name; NSString *phone; NSString
Let's say I want to write a function that validates an email address with
Let me frame it this way.. Say I have an application server running on

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.