div+css布局实现飞机机舱外风景效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css布局实现飞机机舱外风景效果代码

代码标签: 飞机 机舱 风景 效果

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


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

<head>

  <meta charset="UTF-8">

  
  
  
<style>
*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body{
  height: 100vh;
  background-color: #1F5372 ;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container
{
  width: 160px;
  height: 335px;
  position: relative;
  background: linear-gradient(to bottom, #133C55 0%, #59A5D8 70%, #84D2F6 100%);
  box-shadow: 0 10px 20px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.1);
  border-radius: 100px;
  overflow: hidden;
}

.disc-1 {
  position: absolute;
  top:37%;
  left: -4%;
  width: 170px;
  height: 170px;
  background: #FFD6D6;
  opacity: .2;
  border-radius: 50%;
  animation: glow infinite 2s;
  animation-fill-mode: both;
  animation-direction: alternate;
}
.disc-2 {
  position: absolute;
  top: 45%;
  left: 10%;
  width: 130px;
  height: 130px;
  background: #FFDED6;
  opacity: .4;
  border-radius: 50% ;
  animation: glow infinite 2s;
  animation-fill-mode: both;
  animation-direction: alternate;
}
.disc-3 {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 100px;
  height: 100px;
  border-radius: 50% ;
  background: #FEE7DB;
  opacity: .6;
  animation: glow infinite 2s;
  animation-fill-mode: both;
  animation-direction: alternate;
}

.landscape-1{
  position: absolute;
  bottom: 40px;
  left: 0px;
  width: 200px;
  height: 60px;
  background-color: #B7D9E2;
  transform: rotate(-8deg);
}
.landscape-2{
  position: absolute;
  bottom: 30px;
  left: -10px;
  width: 200px;
  height: 60px;
  background-color: #86B6C6;
  transform: rotate(8deg);
}
.landscape-3{
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 200px;
  height: 60px;
  background-color: #5C93AA;
  transform: rotate(-8deg);
}
.landscape-4{
  position: absolute;
  bottom: 0px;
  left: -10px;
  width: 200px;
  height: 60px;
  background-color: #3A728E;
  transform: rotate(2deg);
}
  
.landscape-5{
  position: absolute;
  bottom: -20px;
  left: -10px;
  width: 200px;
  height: 60px;
  background-color: #1F5372;
  transform: rotate(-8deg);
}
.tree-1{
  position: absolute;
  top: 69%;
  left: 30%;
  height: 15px;
  width: 20px;
  background-color:#59A5D8 ;
  clip-path: polygon(50% 0%, 22% 100%, 75% 100%);
  box-shadow: 2px 0 2px 4px rgba(0,0,0,.1);
}
.tree-2{
  position: absolute;
  top: 66%;
  left: 80%;
  height: 15px;
  width: 13px;
  background-color: #59A5D8;
  clip-path: polygon(50% 0%, 22% 100%, 75% 100%);
  box-shadow: 2px 0 2px 4px rgba(0,0,0,.1);
}
.tree-3{
  position: absolute;
  top: 70%;
  left: 10%;
  height: 20px;
  width: 18px;
  background-color: #386FA4;
  clip-path: polygon(50% 0%, 22% 100%, 75% 100%);
  box-shadow: 2px 0 2px 4px rgba(0,0,0,.1);
}
.tree-4{
  position: absolute;
  top: 70%;
  left: 60%;
  height: 20px;
  width: 15px;
  background-color:#386FA4 ;
  clip-path: polygon(50% 0%, 22% 100%, 75% 100%);
  box-shadow: 2px 0 2px 4px rgba(0,0,0,.1);
}
.tree-5{
  position: absolute.........完整代码请登录后点击上方下载按钮下载查看

网友评论0