Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Already animated elements don't fire complete callback #99

Open
grrowl opened this issue Sep 11, 2012 · 2 comments
Open

Already animated elements don't fire complete callback #99

grrowl opened this issue Sep 11, 2012 · 2 comments

Comments

@grrowl
Copy link

grrowl commented Sep 11, 2012

When an element (or set of elements) is already hidden and you call fadeOut(), jQuery will no longer file the 'complete' callback. The following code replicates the issue:

var myElem = $('<div>Hi, I'm an element!</div>');
myElem.appendTo('body').hide();

myElem.fadeOut(function () {
  alert('I've finished fading out!'); // this will never get executed
});

Issue also exists for a visible element and calling fadeIn();

@toxaq
Copy link

toxaq commented Oct 19, 2012

Doesn't call the step callback either.

@gavrochelegnou
Copy link
Contributor

I think my patch concerns the same issue and might do the trick :
#104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants