大家好,我有这个CSS 样式:
body {
width:100%;
height:100%;
background:#fff;
background-image: url(bg.png), url(clouds.png);
background-repeat: repeat;
font-family: tahoma;
font-size: 14px;
margin:0;
}
@-webkit-keyframes float {
0% {
background-position: 0 0;
}
100% {
background-position: 1200px 0;
}
}
@media only screen and (min-device-width: 1024px) {
body {
-webkit-animation-name: float;
-webkit-animation-duration: 60s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-moz-animation-name: float;
-moz-animation-duration: 60s;
-moz-animation-iteration-count: infinite;
-moz-animation-timing-function: linear;
}
}
此代码为bg.png图像设置动画。但我想为cloud.png图像制作动画。我可以做些什么来动画cloud.png而不是bg.png?:)