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

Fixed issue with fadeOut() / "hide" shortcut #26

Merged
merged 1 commit into from Apr 5, 2011

Conversation

danauclair
Copy link
Contributor

Thanks for a great project Ben!

In the _interpretValue() function you were translating an opacity value of "show" to 1 but I needed to add another check for changing the value of "hide" to 0 to get jQuery's fadeOut() to work properly. Also in the cssCallback function after the animation completes I added a check to change the css of the elements to display: none if the "hide" shortcut was used.

@benbarnett
Copy link
Owner

This is awesome, thank you!

I'm really busy on client work this week so i'm hoping to pull this at the weekend. I'll let you know on here. Thanks again.

@danauclair
Copy link
Contributor Author

No problem, another thing I noticed but haven't fixed is that the fadeIn() shortcut will mess up styles for any elements that aren't "display: block" to start with. Before fading in you are checking to see if the element is hidden and then setting "display: block" and "opacity: 0" to prepare for the fade in. Should probably be caching whatever the display property of that element originally was instead of always assuming "block".

Pretty minor thing, maybe I'll fix it as well if I have some time this weekend.

@benbarnett benbarnett merged commit 4e6aa80 into benbarnett:master Apr 5, 2011
jefferyto pushed a commit to jefferyto/jquery-animate-enhanced that referenced this pull request Apr 4, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants