【发布时间】:2018-11-05 21:00:36
【问题描述】:
我在 MSIE11 中有一个奇怪的错误,动画元素在动画结束后立即消失。
看这个例子
.cta-43274891247129739-info {
position: absolute;
left: 0;
top: 50px;
margin: 10px 10px;
animation: cta-43274891247129739 4s 1s both ease-out;
text-align: center;
}
@keyframes cta-43274891247129739 {
0% {
transform: translateY(1em);
opacity: 0;
}
16.6667%, 83.3333% {
opacity: 1;
transform: translateY(0em);
}
100% {
transform: translateY(-40px);
}
}
<div class="cta-43274891247129739-info">This animation fades in from the bottom, makes a short stop and then translates up to its final halt. But not on MSIE11, where it will dissappear apruptely at the end of the animation </div>
【问题讨论】:
-
IE-11 确实支持动画属性。为什么你认为它不会。如果您在 IE11 中打开此示例,它会生成动画。
标签: css internet-explorer-11 css-animations