Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Conversation

@ahmednuaman
Copy link
Contributor

I kept having problems where the 'hide' fade animation worked fine but the 'show' fade animation didn't. I narrowed it down to .ng-hide not having opacity: 0. Sticking this in has fixed the 'show' fade animation for me.

@mary-poppins
Copy link

Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.

  • Uses the issue template (#7607)

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@mary-poppins
Copy link

I'm sorry, but I wasn't able to verify your Contributor License Agreement (CLA) signature. CLA signature is required for any code contributions to AngularJS.

Please sign our CLA and ensure that the CLA signature email address and the email address in this PR's commits match.

If you signed the CLA as a corporation, please let us know the company's name.

Thanks a bunch!

PS: If you signed the CLA in the past then most likely the email addresses don't match. Please sign the CLA again or update the email address in the commit of this PR.
PS2: If you are a Googler, please sign the CLA as well to simplify the CLA verification process.

@ahmednuaman
Copy link
Contributor Author

All done.

@mary-poppins
Copy link

CLA signature verified! Thank you!

Someone from the team will now triage your PR and it will be processed based on the determined priority (doc updates and fixes with tests are prioritized over other changes).

@btford
Copy link
Contributor

btford commented Jun 10, 2014

@matsko is this still an issue?

@btford btford added this to the 1.3.0 milestone Jun 10, 2014
@ahmednuaman
Copy link
Contributor Author

Hello. Yep, it just makes the full animation process a lot nicer. Sorry for the broken build, sad 🐼

@matsko
Copy link
Contributor

matsko commented Jun 16, 2014

@ahmednuaman since the recent versions of 1.3 handle the display styling for you then this means that having CSS code that looks like:

.sample-show-hide.ng-hide {
    opacity:0;
}

Works fine. Can you possible change it to this? What do you think?

@matsko matsko self-assigned this Jun 16, 2014
@ahmednuaman
Copy link
Contributor Author

Yeah sure, by "display styling", do you mean just display: block etc?

@matsko
Copy link
Contributor

matsko commented Jun 16, 2014

Yup. That is not needed anymore. The CSS selector dance isn't required some ngAnimate is smart enough to apply the display change at the right time.

@ahmednuaman
Copy link
Contributor Author

Ok makes sense, so do you want me to remove important? I'm not sure that will cause a problem?

@matsko
Copy link
Contributor

matsko commented Jun 16, 2014

Yeah that would be good. All the CSS code can be removed for the ng-hide animation except for that single rule that has the opacity: 0 style.

@ahmednuaman
Copy link
Contributor Author

Is there somewhere I can test this?

@matsko
Copy link
Contributor

matsko commented Jun 16, 2014

In the angular.js repo, run grunt package webserver. Then point your browser to: http://localhost:8000/build/docs/guide/animations. It should be there as the first example.

@ahmednuaman
Copy link
Contributor Author

Sure, I'm going to test it against my css code on one of my projects, should I just use master or 1.3.0-beta.11?

@matsko
Copy link
Contributor

matsko commented Jun 16, 2014

master.

@ahmednuaman
Copy link
Contributor Author

Sorry for slacking on this, checking now.

@ahmednuaman
Copy link
Contributor Author

All done, here's a gif of it in action:

@ahmednuaman
Copy link
Contributor Author

Hmm, damn gif doesn't really give the full frames.

@matsko
Copy link
Contributor

matsko commented Jun 24, 2014

Please squash everything into one commit.

@ahmednuaman
Copy link
Contributor Author

All done.

@matsko
Copy link
Contributor

matsko commented Jun 25, 2014

@btford please merge this in for me. I've only got mobile.

@matsko
Copy link
Contributor

matsko commented Jul 1, 2014

@ahmednuaman with the new fixes to ngShow/ngHide in 1.3, I updated your code and it removes more code than it adds (which is always a great thing).

d2963ad

Thank you for making the fix.

@matsko matsko closed this Jul 1, 2014
@ahmednuaman
Copy link
Contributor Author

👍

@ahmednuaman ahmednuaman deleted the patch-2 branch July 2, 2014 06:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants