Skip to main content

Bug Tracker

Side navigation

#11987 closed bug (duplicate)

Opened June 28, 2012 11:43AM UTC

Closed October 15, 2012 09:34PM UTC

FadeIn function does not execute correctly after stop() call

Reported by: Owned by:
Priority: low Milestone: None
Component: effects Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

The fadeIn function does not seem to work correctly under certain circumstances.

I've created an example, where the problem can be observed:

There are two parts which are doing practically the same. The upper one seems buggy, the lower one works correctly.

There is a red box that fades in a blue box when the curser is entering, and fades out the box again when the cursor is leaving. The upper one uses the functions fadeIn() and fadeOut() (seems buggy), the lower one uses fadeTo() (works correctly).

If you enter the red div with the mouse, the blue div will start fading in. Leave it while it's still fading in. Now it stops fading in and begins to fade out. If you now reenter it while it's fading out, it will just freeze, although it should again start to fade in. But it doesn't.

If you leave it again it will continue fading out and whenever you enter it again before it is completely faded out, it will just freeze.

In the lower example everything works as expected, here I used the fadeTo function with the parameters 0 and 1 for the target opacity.

Here is the code snippet, that is relevant:


	function fadeIn1(){
	function fadeOut1(){


	function fadeIn2(){
		$("#fadediv2").stop(true).fadeTo(2000, 1);	
	function fadeOut2(){
		$("#fadediv2").stop(true).fadeTo(2000, 0);			
Attachments (0)
Change History (4)

Changed June 28, 2012 05:05PM UTC by anonymous comment:1

Example also available at js-fiddle:

Changed July 03, 2012 06:25PM UTC by gnarf comment:2

status: newopen

Confirm, problem also exists on edge

Changed July 12, 2012 01:56AM UTC by dmethvin comment:3

component: unfiledeffects
priority: undecidedlow

Changed October 15, 2012 09:34PM UTC by dmethvin comment:4

resolution: → duplicate
status: openclosed

Duplicate of #10462.