【发布时间】:2011-09-11 11:34:54
【问题描述】:
我制作了一个从左到右的动画背景。一切正常,但是当背景图像正确时,动画会重新开始。
我怎样才能让它连续运行,使它看起来总是从左到右移动(没有中断)?
这里的小提琴链接仅适用于 webkit 浏览器:
http://jsfiddle.net/Tu95Y/750/
@-webkit-keyframes slide {
from{
background:left;
}
to{
background:right;
}
}
#logo{
width:300px;
height:200px;
background:url(http://www.psdgraphics.com/wp-content/uploads/2009/02/abstract-background.jpg);
-webkit-animation: slide 5s linear infinite;
}
【问题讨论】:
标签: animation google-chrome css webkit