Ich habe diese Animation und es funktioniert wie ein Charme in jedem Browser außer IE und Edge. Sie können die Seite sehen hier https://jsfiddle.net/03ddygdx/CSS-Keyframe-Animation funktioniert nicht wie beabsichtigt in IE und Edge
.progress-container {
position: relative;
}
.background-progress-bar, .progress-bar {
width: 100%;
height: 10px;
top: 0px;
left: 0px;
position: absolute;
}
.background-progress-bar {
background-color: pink;
z-index: 8;
}
.progress-bar {
background-color: red;
z-index: 9;
}
.indeterminate {
animation: indeterminate 2.5s infinite linear;
}
@keyframes indeterminate {
0% {
width: 30%;
left: 0%;
}
25% {
width: 50%;
left: 50%;
}
50% {
width: 10%;
left: 0px;
}
75% {
width: 30%;
left: 0%;
}
100% {
width: 0%;
left: calc(100% - 5px);
}
}
<div class="progress-container">
<span class="background-progress-bar">
<span class="progress-bar indeterminate"></span>
</span>
</div>
Im IE und Rand nicht die linke Eigenschaft gelten, die Spanne immer nach links zu verlassen. Ich habe versucht, die-ms-Animation-Eigenschaft, aber das funktioniert auch nicht.
Falls es darauf ankommt ich in meinem index.html diesen Meta-Tag bekam
<meta http-equiv="X-UA-Compatible" content="IE=edge">