首页htmlbackgroundAnimation - 如何动画背景创建云

Animation - 如何动画背景创建云

我们想知道如何动画背景创建云。

<!DOCTYPE html>
<html>
<head>
  <style type='text/css'>
#awan {
  background: url(https://abs.twimg.com/images/themes/theme1/bg.png) center top repeat-x;
  height: 135px;
  animation: awan-animasi 10s linear infinite;
  -ms-animation: awan-animasi 10s linear infinite;
  -moz-animation: awan-animasi 10s linear infinite;
  -webkit-animation: awan-animasi 10s linear infinite;
}
@keyframes awan-animasi {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  };
}
@-webkit-keyframes awan-animasi {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  };
}
@-ms-keyframes awan-animasi {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  };
}
@-moz-keyframes awan-animasi {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  };
}
  </style>

</head>
<body>
  <div id="awan">
</div>
</body>
</html>