【发布时间】:2014-09-08 14:19:55
【问题描述】:
我无法让 -o-animation 与 Opera 一起使用。我正在使用浏览器版本 23.0.1522.77。此外,在某些版本中,动画功能可以在 Chrome 中使用,但并非总是如此。 我真的需要使用 -webkit-animation 将我的代码加倍才能始终工作吗?
这是我的 CodePen:http://codepen.io/anon/pen/sAGJj
.box{
width: 100px;
height: 100px;
display: block;
position: absolute;
border: 2px solid white;
background: #063c84;
border-radius: 10px;
animation: opacity 10s infinite linear,
colorChange 10s infinite ease-in-out;
-o-animation: opacity 10s infinite linear,
colorChange 10s infinite ease-in-out;
}
@keyframes opacity{
0% {opacity: 1}
50% {opacity: 1}
75% {opacity: .7}
100% {opacity: 1}
}
@keyframes colorChange
{
0% { background-color: #00a2e8; }
25% { background-color: #063c84; }
50% { background-color: #9121cd; }
75% { background-color: #01b001; }
100% { background-color: #00a2e8; }
}
【问题讨论】:
标签: html css opera css-animations