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
Issue with animations not working correctly on IE/Edge #29463
Comments
The same problem occurs in our app. Animations are not triggered in IE and Edge (slide open animation). |
same problem with ng-bootstrap collapse animation if we use display:none to display:block transition |
I am seeing that |
I asked this question on StackOverflow but I'll post the details here for completion. I've made the following angular animation for my app so be able to vertically expand/collapse elements. It works, but it seems the Edge and IE do not apply the import { trigger, transition, style, animate, state } from '@angular/animations';
export const expandCollapseAnimation = trigger('expandCollapse', [
state('*', style({
height: '*',
})),
state('void', style({
height: '0',
'overflow-y': 'hidden',
})),
//Same transition duration/easing when entering or leaving
transition('* => *', animate(`300ms cubic-bezier(0.4, 0, 0.2, 1)`))
]); Here's what it looks like in Chrome, where And here's what it looks like in Edge and IE where the content "pops" in & out instead. What can I do to fix this? And yes, I did install and add |
Problem still exists with Reverting back to |
The same problem is also present in Safari (...another awful browser 馃憥 馃槃). |
the same problem here. I've noticed something though, that IE EDGE doesn't like the If you use |
Another workaround that solved a similar problem for me is to add the final styles additionally after the animation: transition(`* => MY_STATE`, [
animate(`100ms`, keyframes([ // keyframes necessary for IE11/Edge
style({width: '100px'})
])),
style({width: '100px'}) // final styles necessary for IE11/Edge
]), |
Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular version. If the problem still exists in your application, please open a new issue and follow the instructions in the issue template. |
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/animations
Is this a regression?
Yes, we have tested that this used to work in Angular 7.2.7 and does not anymore in Angular 7.2.8+ (tested in 7.2.8, 7.2.9 and 7.2.10)
Description
We want to create a box with a title bar that, on click, will close and hide its content. We also tried to animate its opening and closing, but with angular 7.2.8+ this doesn't work correctly:
From the changelog, it seems to be related to #28911
馃敩 Minimal Reproduction
We have created a minimal repo with the angular CLI at https://github.com/andreabergia/angular-close-animation-bug
Simply starting the application will show the test component; clicking on its bar should open and collapse the box, but it doesn't work correctly as described above.
The interesting source code is in the files collapsible-box.component.ts and collapsible-box.component.html
馃實 Your Environment
Angular Version:
The bug can be reproduced with Angular 7.2.8, 7.2.9 and 7.2.10. It is not present in 7.2.7.
The text was updated successfully, but these errors were encountered: