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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Animations] toggle state with display: 'none'
doesn't work on Safari
#29371
Comments
Still facing this issue at 7.2.14. 7.2.7 is the last version working, as stated above. |
Facing the same Problem! |
@Michsior14 I'm facing the same problem, where my animated container contains a The problem is I don't think your example really works very well on Chrome either. I changed your stackblitz to use longer delays (of 2 or 4 seconds). When you click the "Fade" button to fade in you don't actually see anything fading in - it just jumps to being visible after 2 seconds or 4 seconds. So while there does indeed seem to be a regression in Safari - because it just flat doesn't work - there's a better way to do the The difference being the 'block' state is set on the transition. This works in Safari.
However I can't figure out why the animation of the mat-progress bar is completely messed up - but the panel animates just fine. |
@simeyla The example was prepared very quickly from already existing stackblitz to show that nothing happens in the Safari. I know that it is actually only fading out and it's intended. |
This is right off material's documentation: https://stackblitz.com/angular/drlaxdpogep?file=app%2Ftable-expandable-rows-example.ts Here's the page its on: https://material.angular.io/components/table/examples (look for expandable) It works on the page, then you go to the stackblitz and you get broken behavior, even in Chrome. |
Any update on this part? I'm facing the same problem. |
@james-criscuolo, @dawda92 Also, to get expanded row hided on default state, it's required to add
This works to me (take a note for an additional
|
I have the same problem in IE11 in Angular 8.1.0: The animation seems to get stuck in a "animation-play-state: running;" state. |
@gizmodus @AmebaBrain Solved by display property and using I would never get back the 2 weeks that I spent solving this but thank you very much, everyone Working code:
|
@gizmodus this fixed it for me too! |
I'm trying to get @gionkunz 's solution to work for my route transitions, but since I'm not transitioning between only two states (true/false) and instead transitioning between all routes (using routerOutlet.activatedRoute) I'm not sure how to adapt this solution. I tried all flavors of '* => *' I could think of, but I'm always losing the fade out part of the animation. Thanks ! |
This issue is persisting in Angular 8 / animations 8.2.9 in Safari. Animation-play-state seems to get stuck before finishing, resulting in opacity: 0, or 3D transform states which hide elements. A major issue is with angular material mat-sidenav which doesn't become visible until you refresh the browser. Interestingly the animations always fire and complete correctly after a browser refresh, but consistently fail on initial loading |
I have this issue in Chrome/safari in ios 12.1.4 with Angular 8.1. It works on Safari if the experimental feature for web animation is turned on. |
After trying several of the solution suggested here. Setting the height affected my transitions in a way that I didn't want and
|
@simeyla approach worked for me. The animation now is working better on chrome and it is actually working on IE11 and edge. However, that would be nice to have a definitive fix on this issue. Thanks. |
I solved my problem by this, maybe be helfull for others that have the same problem with angular 7
I am using it for FadeIn and FadeOut the input
|
Why not to try
|
I had the same problem but working with queries I just adjust the time of the stagger it was before 600ms and the animation 600ms also. I adjusted to 200ms and work excellent in all browsers
|
you are my man 鉂わ笍 . worked flawless.. i was using same animation lol |
I'm going to close this since there is a good solution here. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃悶 bug report
Affected Package
The issue is caused by package @angular/animationsIs this a regression?
Yes, the previous version in which this bug was not present was: 7.2.7Description
When using animation state with `display: 'none'` the animation does not fire/finish on Safari. It seems to be related to #28911 .馃敩 Minimal Reproduction
https://stackblitz.com/edit/angular-v6-animations-txqyvd
After click on "fade" button, two texts should be shown (without actual "fade in" animation, they should just appear), what works perfectly fine in Chrome, Firefox and IE/Edge on Linux/Windows.
馃實 Your Environment
Angular Version:
Anything else relevant?
Safari on macOS and iPad
The text was updated successfully, but these errors were encountered: