飘动的云

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>飘动的云朵</title>
<style type="text/css">
    *{
        margin:0;
        padding:0;
    }
@-webkit-keyframes animate-cloud {
  from {
    background-position: 1920px 100%;
  }
  to {
    background-position: 0 100%;
  }
}
@-webkit-keyframes animate-clouds {
  from {
    background-position: 1920px 100%;
  }
  to {
    background-position: 0 100%;
  }
}
html,body{
    width: 100%;
    height: 100%;
}
.clouda{
   background:url("cloudc.png") 0 bottom repeat-x #f5f5f5;
   background-size: 100%;
   animation: animate-cloud 100s linear infinite;
   width: 100%;
   height: 100%;
   padding: 0;   
   margin: 0;  
   position: absolute;
   z-index: 1;
   zoom:1;
}
.cloudb{
   background:url("cloudd.png") 0 bottom repeat-x #f5f5f5;
   background-size: 100%;
   animation: animate-clouds 10s linear infinite;
   width: 100%;
   height: 100%;
   padding: 0;   
   margin: 0;  
   opacity: .5;
   position: absolute;
   z-index: 1;
   zoom:1;
}
</style>
<body>
<div class="clouda"></div>
<div class="cloudb"></div>
</body>
</html>

中间加logo和文字 标题啥的 挺好看的 logo 的颜色控好

猜你喜欢

转载自blog.csdn.net/czy279470138/article/details/84863612