-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Bug(MdTabs): Translate animation not working in IE 11 / Edge #4982
Comments
This should probably solved similar to MdSidenav: |
You need to include a polyfill for web animations, if you want most of the Material animations to work under IE. The sidenav is an exception that will be moved to the Angular animations eventually. |
@crisbeto you are right, i forgot to include the polyfill in the plunkr. However, the problem still remains even with the polyfill. I am currently investigating the issue with a simple plunkr example: |
@crisbeto see also https://material.angular.io/components/component/tabs as an example |
the issue here in material is most probably due to a bug in angular: angular/angular#17239 |
@macjohnny , I tested here against IE11 and Edge. IE11: Although there's a little delay, and something that resembles an animation, the rectangle's position is switched form one side to another. Edge: worked fine |
@julianobrasil can you check what happens in https://fiddle.jshell.net/fu7mrqn0/8 ? |
@macjohnny , here is the report: IE11: didn't work fine in just one case: "translate with percentages, 2 keyframes". For all the others cases in IE11, the animation ran smoothly. Edge: no problem. All cases seemed to work as expected. |
@julianobrasil thanks for having a look at it. |
Here is a workaround: using However, I think this should be fixed in web-animations-js, since translating from |
@andrewseguin @jelbourn the workaround suggested here and in PR #4986 seems to work fine, we had no more issues with that. |
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, feature request, or proposal:
Bug
What is the expected behavior?
When changing tabs, the content should be animated to translate to the left or to the right.
What is the current behavior?
In IE 11 / Edge
What are the steps to reproduce?
http://embed.plnkr.co/bXpnE7/
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.1.3, Material 2.0.0-beta.6
Is there anything else we should know?
Apparently, this is due to animating with "translate3d()". The sidenav e.g. sets the style property instead of using the animation API, which seems to work.
The text was updated successfully, but these errors were encountered: