css布局实现可爱蓝天白云太阳动画效果代码

代码语言:html

所属分类:动画

代码描述:css布局实现可爱蓝天白云太阳动画效果代码

代码标签: 可爱 蓝天 白云 太阳 动画 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
body {
  background: #ade5f5;
  color: #333;
  font: 100% Arial, Sans Serif;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.cloud-content {
  bottom: 0;
  left: 0;
  padding-top: 50px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1;
}

.cloud-block {
  position: absolute;
  opacity: 0.8;
}
.cloud-1 {
  top: 50px;
}
.cloud-2 {
  top: 40vh;
}
.cloud-3 {
  top: 20vh;
}
.cloud-4 {
  top: 40vh;
}
.cloud-5 {
  top: 65vh;
}
.cloud-6 {
  top: 35vh;
}
.cloud-7 {
  bottom: 30px;
}

.cloud-1 {
  animation: animate-1 32s linear infinite;
  -webkit-animation: animate-1 32s linear infinite;
  transform: scale(0.65);
  -webkit-transform: scale(0.65);
}

.cloud-2 {
  animation: animate-2 37s linear infinite;
  -webkit-animation: animate-2 37s linear infinite;
  transform: scale(0.45);
  -webkit-transform: scale(0.45);
}

.cloud-3 {
  animation: animate-3 45s linear infinite;
  -webkit-animation: animate-3 45s linear infinite;
  transform: scale(0.5);
  -webkit-transform: scale(0.5);
}

.cloud-4 {
  animation: animate-4 50s linear infinite;
  -webkit-animation: animate-4 50s linear infinite;
  transform: scale(0.4);
  -webkit-transform: scale(0.4);
}

.cloud-5 {
  animation: animate-5 55s linear infinite;
  -webkit-animation: animate-5 55s linear infinite;
  transform: scale(0.55);
  -webkit-transform: scale(0.55);
}

.cloud-6 {
  an.........完整代码请登录后点击上方下载按钮下载查看

网友评论0