Skip to content

Bug: Animating translate3d() in IE 11 does not work with percentages #142

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

Open
macjohnny opened this issue Jun 6, 2017 · 3 comments
Open

Comments

@macjohnny
Copy link

macjohnny commented Jun 6, 2017

When animating the translate3d() property with percentage values, the animation does not work in IE 11. It works fine with absolute pixel values, however.

See the example here:
https://jsfiddle.net/fu7mrqn0/8/
In the example "translate with percentages, 2 keyframes", the box does not move at all in IE 11, while in chrome, etc. it does.

Moreover, when using more than two keyframes, the animation for all but the first keyframe seems to work.

Tested with version 2.2.5

@macjohnny
Copy link
Author

I found a workaround: using translate3d(0%,0,0) instead of translate3d(0,0,0) apparently fixes the problem, see this jsfiddle example: https://jsfiddle.net/5bhbq4ao/
However, I think this should be fixed here, since translating from translate3d(0,0,0) to translate3d(100px,0,0) works, whereas translating from translate3d(0,0,0) to translate3d(100%,0,0) does not.

@drawcall
Copy link

You can try using anix, a simpler cartoon library
https://github.com/a-jie/AniX

@macjohnny
Copy link
Author

@a-jie thanks for your suggestion, however, using Angular we rely on web-animations-js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants