【发布时间】:2018-03-20 17:35:21
【问题描述】:
我在我的应用程序中创建了一个简单的加载网格,并在其上添加了动画。这个动画似乎在除 IE11 之外的所有浏览器中都有效。
谁能帮我理解为什么它不工作以及如何让它在 IE11 中工作?
.loading {
background-color: #ededed;
height: 12px;
width: 500px;
overflow: hidden;
}
.animation {
animation: loading 1.2s linear;
animation-iteration-count: infinite;
background-color: #e0e0e0;
height: 100%;
left: 0;
position: relative;
top: auto;
width: 300px;
}
@keyframes loading {
from {left: -30rem}
to {left: calc(100% + 30rem)}
}
<div class="loading">
<div class="animation"></div>
</div>
JSFiddle 如果你有兴趣:https://jsfiddle.net/9shufwsL/
【问题讨论】:
-
试试这个
animation: loading 1.2s infinite; -
@PraveenKumar 没有那么多,因为我的问题在该问题的答案中没有得到任何回答
标签: html css css-animations internet-explorer-11