【发布时间】:2016-11-28 11:28:38
【问题描述】:
所以我有一个元素,它的边框和背景图像发生变化(图像颜色与边框颜色对应)它一切正常,但在 IE 10+ 中不行,只有边框颜色会改变我缺少什么?
.circleGreen:before {
border: 4px solid;
background: url(img/adapts1.png) no-repeat center center;
background-size: auto auto;
-webkit-animation: mymove 12s infinite;
-moz-animation: mymove 12s infinite;
-ms-animation: mymove 12s infinite;
-o-animation: mymove 12s infinite;
animation: mymove 12s infinite;
}
@-webkit-keyframes mymove {
0% {border: 4px solid #18f6b0; background: url(img/adapts1.png) no-repeat center center;}
25% {border: 4px solid #f7ba44; background: url(img/adapts3.png) no-repeat center center;}
50% {border: 4px solid #f6135e; background: url(img/adapts2.png) no-repeat center center;}
75% {border: 4px solid #2ccafe; background: url(img/adapts4.png) no-repeat center center;}
100% {border: 4px solid #18f6b0; background: url(img/adapts1.png) no-repeat center center;}
}
@-moz-keyframes mymove {
0% {border: 4px solid #18f6b0; background: url(img/adapts1.png) no-repeat center center;}
25% {border: 4px solid #f7ba44; background: url(img/adapts3.png) no-repeat center center;}
50% {border: 4px solid #f6135e; background: url(img/adapts2.png) no-repeat center center;}
75% {border: 4px solid #2ccafe; background: url(img/adapts4.png) no-repeat center center;}
100% {border: 4px solid #18f6b0; background: url(img/adapts1.png) no-repeat center center;}
}
@-ms-keyframes mymove {
0% {border: 4px solid #18f6b0; background: url(img/adapts1.png) no-repeat center center;}
25% {border: 4px solid #f7ba44; background: url(img/adapts3.png) no-repeat center center;}
50% {border: 4px solid #f6135e; background: url(img/adapts2.png) no-repeat center center;}
75% {border: 4px solid #2ccafe; background: url(img/adapts4.png) no-repeat center center;}
100% {border: 4px solid #18f6b0; background: url(img/adapts1.png) no-repeat center center;}
}
@-o-keyframes mymove {
0% {border: 4px solid #18f6b0; background: url(img/adapts1.png) no-repeat center center;}
25% {border: 4px solid #f7ba44; background: url(img/adapts3.png) no-repeat center center;}
50% {border: 4px solid #f6135e; background: url(img/adapts2.png) no-repeat center center;}
75% {border: 4px solid #2ccafe; background: url(img/adapts4.png) no-repeat center center;}
100% {border: 4px solid #18f6b0; background: url(img/adapts1.png) no-repeat center center;}
}
@keyframes mymove {
0% {border: 4px solid #18f6b0; background: url(img/adapts1.png) no-repeat center center;}
25% {border: 4px solid #f7ba44; background: url(img/adapts3.png) no-repeat center center;}
50% {border: 4px solid #f6135e; background: url(img/adapts2.png) no-repeat center center;}
75% {border: 4px solid #2ccafe; background: url(img/adapts4.png) no-repeat center center;}
100% {border: 4px solid #18f6b0; background: url(img/adapts1.png) no-repeat center center;}
}
【问题讨论】:
-
你能用这个做一个 JSFiddle 吗? jsfiddle.net
标签: css animation css-animations