【发布时间】:2014-05-21 12:08:00
【问题描述】:
我无法弄清楚为什么背景位置的动画在我的 Safari 浏览器版本(Webkit 浏览器)上不起作用。它在 Firefox 上运行良好。
@keyframes animatedBackground {
from {
background-position: 0px 0px; }
to {
background-position: 100% 0px; }
}
.logo {
width: 600px;
height: 300px;
background-image: url("http://placekitten.com/g/200/300");
background-position: 0px 0px;
-webkit-animation: animatedBackground 10s linear infinite;
-moz-animation: animatedBackground 10s linear infinite;
animation: animatedBackground 10s linear infinite;
}
http://jsfiddle.net/LkeMitchll/kpBby/2/
非常感谢任何帮助!
LM。
【问题讨论】:
标签: css google-chrome safari webkit css-animations