首页htmlbackgroundAnimation - 如何设置动画背景图像的原始图像

Animation - 如何设置动画背景图像的原始图像

我们想知道如何设置动画背景图像的原始图像。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#slideshow {
  position: relative;
  overflow: hidden;
  height: 100px;
}

#fixme {
  height: 60px;
  position: relative;
  overflow: hidden;
}

#animate-area {
  height: 100%;
  width: 2538px;
  position: absolute;
  left: 0;
  top: -15px;
  background-image: url('http://www.w3cschool.cn/style/download.png');
  -ms-animation: animatedBackground 40s linear infinite;
  -moz-animation: animatedBackground 40s linear infinite;
  -webkit-animation: animatedBackground 30s linear infinite;
}
/* Put your css in here */
@keyframes animatedBackground {
  from { left:0;}
  to {left: -1269px;}
}
@-webkit-keyframes animatedBackground {
  from { left:0;}
  to {left: -1269px;}
}
@-moz-keyframes animatedBackground {
  from { left:0;}
  to {left: -1269px;}
}
</style>
</head>
<body>
  <div id="slideshow">
    <div id="fixme">
      <div id='animate-area'></div>
    </div>
  </div>
</body>
</html>