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
Angular 6 Animation is not working in IE #24923
Comments
There is also a problem in IE that |
We had a similar problem as in the first post, solved it by adding this to our polyfills:
|
Hi, I have tested using https://stackblitz.com/edit/angular-grryts (link added in the bug description), but i wont able to resolve the problem. Could you try to test with the link? thanks |
Hey. Yeah, you're right, it doesn't solve the actual animation. We probably had a different bug where the animation would throw an error in IE11 if if we didn't add the polyfill. Sorry. |
Hi, someone has a workaround that can help to me ? Or some other solution that i can use for implementing the same animation ? |
@opetriienko Is there an issue open for this? I can't find one and am experiencing the same. |
Same here. I've tried all the proposed solutions and I'm having this with routing transitions. |
@jackmusick After what feels like a lifetime of debugging, I know what was causing this for me so maybe it will help you. I have dynamic components in my template that I don't want to be removed from the DOM while the page is being navigated away from (it looks weird). In order to prevent them from being hidden, I added a block to my animation that look like this: This worked in all browsers besides IE. So I dug into the code. Because IE requires polyfilling, it uses CssKeyFrames instead of WebAnimations. CssKeyFrames generates CSS for my code that looks like this:
Angular is relying on the animationend event to remove elements from the DOM. IE never triggers the animation end event when there are no animatable properties in the block (for instance: display block -> display block also does not trigger the animationend event). Until Angular puts in a fix, I have resolved this by adding animatable properties to my ng-component query:
|
@willyboy I tried what you suggested and I don't think it helped. Here's what I'm using for my router transition:
I can't say I understand Angular Animations fully, but I will say that this worked in Angular 5. The intended result is to fade and transition the main content in the router, left to right. This works fine in Chrome, but in IE and Edge, it leaves the object on the screen and the incoming route is left faded a little on the left. If I navigate back to the previous route, it's appended to the top of the screen, effectively creating two components. |
This was a surprise for me to upgrade from angular 4 with purposely no animation polyfill to angular 6. I did not include it because it was not rendering well on IE., but now that the polyfill is not needed, my app on IE is a disaster with broken animation and components not being destroyed. This is an important regression. |
I was able to fix the "Object doesn't support property or method 'matches'" error in Internet Explorer by setting |
@theodorejb It worked for me as well. After upgrading Angular project from 5 to 6, I started started having this issue on |
@theodorejb @madhav5589 Are either of you using the CLI? I'm still not sure how I customize webpack if I'm using it. |
@jackmusick No, I don't use CLI. I updated webpack.config.js directly. |
@jackmusick I'm not using the CLI, either. My understanding is that the CLI is supposed to take care of setting up the Webpack config correctly, though. If the Angular team considers disabling Webpack's node process option to be the correct solution, then I would expect the CLI to do this out-of-the-box. |
…utside of keyframes/web-animations When web-animations and/or CSS keyframes are used for animations certain CSS style values (such as `display` and `position`) may be ignored by a keyframe-based animation. Angular should special-case these styles to ensure that they get applied as inline styles throughout the duration of the animation. Closes angular#24923 Closes angular#25635 Jira Issue: FW-1091 Jira Issue: FW-1092
…utside of keyframes/web-animations When web-animations and/or CSS keyframes are used for animations certain CSS style values (such as `display` and `position`) may be ignored by a keyframe-based animation. Angular should special-case these styles to ensure that they get applied as inline styles throughout the duration of the animation. Closes angular#24923 Closes angular#25635 Jira Issue: FW-1091 Jira Issue: FW-1092
…utside of keyframes/web-animations When web-animations and/or CSS keyframes are used for animations certain CSS style values (such as `display` and `position`) may be ignored by a keyframe-based animation. Angular should special-case these styles to ensure that they get applied as inline styles throughout the duration of the animation. Closes angular#24923 Closes angular#25635 Jira Issue: FW-1091 Jira Issue: FW-1092
…utside of keyframes/web-animations When web-animations and/or CSS keyframes are used for animations certain CSS style values (such as `display` and `position`) may be ignored by a keyframe-based animation. Angular should special-case these styles to ensure that they get applied as inline styles throughout the duration of the animation. Closes angular#24923 Closes angular#25635 Jira Issue: FW-1091 Jira Issue: FW-1092
…utside of keyframes/web-animations When web-animations and/or CSS keyframes are used for animations certain CSS style values (such as `display` and `position`) may be ignored by a keyframe-based animation. Angular should special-case these styles to ensure that they get applied as inline styles throughout the duration of the animation. Closes angular#24923 Closes angular#25635 Jira Issue: FW-1091 Jira Issue: FW-1092
…utside of keyframes/web-animations When web-animations and/or CSS keyframes are used for animations certain CSS style values (such as `display` and `position`) may be ignored by a keyframe-based animation. Angular should special-case these styles to ensure that they get applied as inline styles throughout the duration of the animation. Closes angular#24923 Closes angular#25635 Jira Issue: FW-1091 Jira Issue: FW-1092
…utside of keyframes/web-animations (#28911) When web-animations and/or CSS keyframes are used for animations certain CSS style values (such as `display` and `position`) may be ignored by a keyframe-based animation. Angular should special-case these styles to ensure that they get applied as inline styles throughout the duration of the animation. Closes #24923 Closes #25635 Jira Issue: FW-1091 Jira Issue: FW-1092 PR Close #28911
Try adding the
|
Hi, Our usage: And in the 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. |
I'm submitting a...
Current behavior
I have the following animation in Angular 6.
When I want to use the animation in a Component:
In parent-component.html I have the html
In the parentcomponent I have a link to add a element. When the user click in the link. The content of examplecomponent is loaded using the animation. In chrome is working perfect. But in Internet Explorer the animation is not working. Also, the animation is working perfect using Angular5 in Chrome and IE. The problem is when i want to use it with Angular 6.
This is my package.json file
polyfills.ts
In Angular5 is working perfect in all browsers, but when I want to migrate to Angular6 i have problems with IE. No errors in IE console.
Minimal reproduction of the problem with instructions
You can reproduce the problem in the following link:
https://stackblitz.com/edit/angular-grryts
The text was updated successfully, but these errors were encountered: