我在屏幕上制作一个元素,但在IE11中,奇怪的事情正在发生.我正在开发中,所以我无法分享实时代码.但我创造了一个小提琴来复制这个问题.
基本上,当我使用视口宽度又名vw与transform:translateX();内部的@keyframes到在动画中使用,IE11不反映的宽度viewport在动画.
所以我创建的小提琴取一个位于以下位置中心的元素viewport:
小提琴:https://jsfiddle.net/Bushwazi/7xe0wy8z/4/
因此,在这两种情况下,IE11都没有使用正确的vwCSS动画内部宽度.
HTML:
<!--
The animation on the red block should start half on the screen, pause at the center of the screen and then finish by pausing at the edge of the screen, half of the box off of the screen
-->
<article>
<p>IE11 weirdness when transforming vw inside keyframes</p>
<strong><span>BLOCK</span></strong>
</article>
Run Code Online (Sandbox Code Playgroud)
CSS:
* …Run Code Online (Sandbox Code Playgroud)