拖动竖线实现和谐发展与破坏自然切换效果

代码语言:html

所属分类:布局界面

代码描述:拖动竖线实现和谐发展与破坏自然切换效果

代码标签: 和谐 发展 破坏 自然 切换 效果

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
/* Variables */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
}

.hide {
  display: none !important;
}

.wrapper {
  width: 75rem;
  height: 70rem;
  position: relative;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.green-ecosystem {
  width: 75rem;
  height: 70rem;
  display: flex;
  overflow: hidden;
  position: absolute;
  opacity: 1;
}

.green-ecosystem .left {
  width: 100%;
  height: 100%;
  background-color: #d4eff9;
  position: relative;
}

.sea {
  width: 40rem;
  height: 19rem;
  background: red;
  position: absolute;
  top: 47.65rem;
  left: 17rem;
  border-bottom-left-radius: 20rem;
  border-bottom-right-radius: 20rem;
  overflow: hidden;
}

.sea .lower {
  position: absolute;
  width: 100%;
  height: 12rem;
  background: #66b8c0;
  top: 9rem;
}

.sea .upper {
  background: #b9e3f3;
  width: 100%;
  height: 100%;
}

.sea .upper .water {
  width: 9.5rem;
  height: 1.4rem;
  position: absolute;
  background: #89d2e1;
  top: 3rem;
  border-radius: 10px;
  left: 3rem;
}

.sea .upper .water::after {
  position: absolute;
  content: "";
  height: 1.2rem;
  width: 3.5rem;
  border-radius: 10px;
  background-color: #89d2e1;
  right: -8px;
  top: 27px;
}

.sea .upper .water::before {
  position: absolute;
  content: "";
  height: 1.3rem;
  width: 5rem;
  background-color: #89d2e1;
  border-radius: 10px;
  top: 4rem;
  right: -7rem;
}

.sea .upper .waves {
  position: absolute;
  width: 10rem;
  height: 7px;
  background: blue;
  background-repeat: repeat;
  height: 6.6666666667px;
  background-size: 20px 22px;
  background-image: radial-gradient(
      circle at 10.666667px -4.333333px,
      transparent 11px,
      #5773a5 0px
    ),
    radial-gradient(
      circle at 11.666667px 5.666667px,
      transparent 11px,
      #5773a5 0px
    );
  top: 3rem;
  left: 14rem;
}

.green-ecosystem .tree1 {
  width: 1.35px;
  height: 4rem;
  position: absolute;
  background-color: #654b00;
  top: 40rem;
  left: 131px;
}

.green-ecosystem .tree1::before {
  position: absolute;
  content: "";
  width: 15px;
  height: 15px;
  background-color: #bcd663;
  border-radius: 50%;
  top: -15px;
  left: -7px;
}

.green-ecosystem .tree1::after {
  position: absolute;
  content: "";
  width: 20px;
  height: 20px;
  background-color: #bed563;
  border-radius: 50%;
  top: -8px;
  left: -10px;
}

.green-ecosystem .tree2 {
  width: 1.35px;
  height: 4rem;
  position: absolute;
  background-color: brown;
  top: 40rem;
  left: 165px;
}

.green-ecosystem .tree2::before {
  position: absolute;
  content: "";
  width: 20px;
  height: 20px;
  background-color: #bcd663;
  border-radius: 50%;
  top: -8px;
  left: -10px;
}

.green-ecosystem .tree2::after {
  position: absolute;
  content: "";
  width: 15px;
  height: 15px;
  background-color: #bcd663;
  border-radius: 50%;
  top: -15px;
  left: -7px;
}

.green-ecosystem .tree3 {
  width: 2px;
  height: 4rem;
  position: absolute;
  background-color: #654b00;
  top: 40rem;
  left: 144.5px;
}

.green-ecosystem .tree3::before {
  position: absolute;
  content: "";
  width: 25px;
  height: 25px;
  background-color: #81c35c;
  border-radius: 50%;
  top: -18px;
  left: -12px;
}

.green-ecosystem .tree3::after {
  position: absolute;
  content: "";
  width: 20px;
  height: 20px;
  background-color: #81c35c;
  border-radius: 46%;
  top: -28px;
  left: -10px;
}

.green-ecosystem .tree3 .branch {
  top: -13px;
  position: absolute;
  z-index: 3;
  width: 2px;
  height: 2rem;
  background-color: #654b00;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.green-ecosystem .tree3 .branch::after {
  position: absolute;
  content: "";
  width: 1px;
  height: 12px;
  background-color: #654b00;
  left: 4px;
  transform: rotateZ(45deg);
  top: 2px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}

.green-ecosystem .tree3 .branch::before {
  position: absolute;
  content: "";
  width: 1px;
  height: 12px;
  background-color: #654b00;
  left: -4px;
  transform: rotateZ(-45deg);
  top: 4px;
  border-top-right-radius: 2px;
}

.green-ecosystem .tree9 {
  position: absolute;
  background: #00a388;
  background-image: linear-gradient(45deg, #008735 40%, #00b64a 40%);
  width: 40px;
  height: 64px;
  border-radius: 70px 70px 60px 50px;
  top: 35rem;
  left: 21rem;
}

.green-ecosystem .tree9::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 16px;
  width: 8px;
  height: 15px;
  background: #674d00;
}

.green-ecosystem .tree8 {
  position: absolute;
  background: #00a388;
  background-image: linear-gradient(45deg, #027647 40%, #00a251 40%);
  width: 40px;
  height: 64px;
  border-radius: 70px 70px 60px 50px;
  top: 36rem;
  left: 24rem;
  width: 20px;
  height: 58px;
  border-radius: 50% 50% 10px 10px;
}

.green-ecosystem .tree8::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 8px;
  width: 4px;
  height: 15px;
  background: #674d00;
}

.green-ecosystem .tree4 {
  width: 2px;
  height: 4rem;
  position: absolute;
  background-color: #654b00;
  top: 39rem;
  left: 188.5px;
}

.green-ecosystem .tree4 .branch {
  top: -3px;
  position: absolute;
  z-index: 3;
  width: 2px;
  height: 2rem;
  background-color: #654b00;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.green-ecosystem .tree4 .branch::before {
  position: absolute;
  content: "";
  width: 2px;
  height: 10px;
  background-color: #654b00;
  left: -4px;
  transform: rotateZ(-45deg);
  top: 4px;
  border-top-right-radius: 2px;
}

.green-ecosystem .tree4 .branch::after {
  position: absolute;
  content: "";
  width: 1.5px;
  height: 12px;
  background-color: #654b00;
  left: 4px;
  transform: rotateZ(45deg);
  top: 1px;
  border-top-right-radius: 5px;
  /* border-bottom-right-radius: 0px; */
  border-top-left-radius: 5px;
}

.green-ecosystem .tree4::before {
  position: absolute;
  content: "";
  width: 23px;
  height: 23px;
  background-color: #bcd663;
  border-radius: 50%;
  top: -21px;
  left: -12px;
}

.green-ecosystem .tree4::after {
  position: absolute;
  content: "";
  width: 28px;
  height: 28px;
  background-color: #bcd663;
  border-radius: 50%;
  top: -11px;
  left: -14px;
}

.green-ecosystem .tree7 {
  position: absolute;
  background: #00a388;
  background-image: linear-gradient(45deg, #609545 40%, #84c25e 40%);
  width: 40px;
  height: 64px;
  border-radius: 70px 70px 60px 50px;
  top: 36rem;
  left: 29.65rem;
  width: 24px;
  height: 59px;
  border-radius: 50% 50% 10px 10px;
}

.green-ecosystem .tree7::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 10px;
  width: 4px;
  height: 15px;
  background: #674d00;
}

.green-ecosystem .tree6 {
  position: absolute;
  background: #00a388;
  background-image: linear-gradient(45deg, #037549 40%, #00a254 40%);
  width: 40px;
  height: 71px;
  border-radius: 70px 70px 60px 50px;
  border-radius: 74% 71% 19px 20px;
  top: 34rem;
  left: 31rem;
}

.green-ecosystem .tree6::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 18px;
  width: 6px;
  height: 16px;
  background: #674d00;
}

.green-ecosystem .sun {
  position: absolute;
  border-radius: 50%;
  width: 10rem;
  height: 10rem;
  top: 16rem;
  left: 10rem;
  position: absolute;
  background: #fff054;
  top: 15%;
  right: 30%;
  /* width: 140px; */
  /* height: 140px; */
  border-radius: 50%;
  box-shadow: 0px 0px 30px 15px #fff9ba;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    animation-timing-function: ease-in;
  }
  50% {
    transform: scale(1.2);
    animation-timing-function: ease-out;
  }
  100% {
    transform: scale(1);
  }
}

.green-ecosystem .cloud2 {
  width: 6rem;
  height: 1.2rem;
  background-color: #fffefe;
  position: absolute;
  top: 26.75rem;
  left: 8.5rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: -3px -3px 0 #fefde3 inset;
}

.green-ecosystem .cloud2::before {
  position: absolute;
  content: "";
  width: 36px;
  height: 3rem;
  border-radius: 50%;
  background: #fffefe;
  top: -18px;
  left: 1rem;
  box-shadow: -3px -10px 0 #fefde3 inset;
}

.green-ecosystem .cloud1 {
  width: 7rem;
  height: 1.2rem;
  background-color: #a4e5ff;
  position: absolute;
  top: 35.75rem;
  left: 5.5rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: -3px -10px 0 #93dafc inset;
}

.green-ecosystem .cloud1::before {
  width: 5.15rem;
  height: 1.2rem;
  content: "";
  top: -1.1rem;
  left: 1rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: #a4e5ff;
  position: absolute;
  box-shadow: -3px -10px 0 #93dafc inset;
}

.green-ecosystem .cloud1::after {
  position: absolute;
  content: "";
  width: 30px;
  height: 3rem;
  border-radius: 50%;
  background: #a4e5ff;
  top: -22px;
  left: 21px;
  box-shadow: -3px -10px 0 #93dafc inset;
}

.green-ecosystem .cloud3 {
  width: 4rem;
  height: 1.2rem;
  background-color: #fffefe;
  position: absolute;
  top: 13.5rem;
  left: 25.85rem;
  border-top-left-radius: 15px;
  border-top-right-radius: 16px;
  box-shadow: -3px -10px 0 #fefde3 inset;
}

.green-ecosystem .cloud3::before {
  position: absolute;
  content: "";
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #fffefe;
  top: -9px;
  left: 12px;
  box-shadow: -3px -10px 0 #fefde3 inset;
}

.green-ecosystem .cloud4 {
  width: 10rem;
  height: 16px;
  background-color: #a3e4fe;
  position: absolute;
  top: 19.5rem;
  left: 30.5rem;
  border-top-left-radius: 15px;
  border-top-right-radius: 16px;
  box-shadow: -3px -10px 0 #93dafc inset;
}

.green-ecosystem .cloud4::before {
  position: absolute;
  content: "";
  width: 4rem;
  height: 4rem;
  background: #a3e4fe;
  border-radius: 50%;
  top: -24px;
  left: 26px;
  box-shadow: -3px -10px 0 #93dafc inset;
}

.green-ecosystem .cloud4::after {
  position: absolute;
  content: "";
  width: 2rem;
  height: 2rem;
  background: #a3e4fe;
  border-radius: 50%;
  top: -12px;
  left: 6rem;
  box-shadow: -3px -10px 0 #93dafc inset;
}

.green-ecosystem .bird1 {
  position: absolute;
  left: 9rem;
  top: 30rem;
  border: 2px solid #030308;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  border-color: #030308 transparent transparent transparent;
  transform: translate(1px, 15px);
}

.green-ecosystem .bird1::before {
  position: absolute;
  content: "";
  position: absolute;
  left: 5px;
  top: -3px;
  border: 2px solid #030308;
  border-radius: 50%;
  width: 12px;
  height: 14px;
  border-color: #030308 transparent transparent transparent;
  /* transform: translate(-2px, 14px); */
  transform: rotateZ(-10deg);
}

.green-ecosystem .bird2 {
  position: absolute;
  left: 13rem;
  top: 30rem;
  border: 2px solid #030308;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  border-color: #030308 transparent transparent transparent;
  /* transform: translate(1px, 15px); */
  transform: rotateZ(22deg);
}

.green-ecosystem .bird2::before {
  position: absolute;
  content: "";
  left: 8px;
  top: -6px;
  border: 2px solid #030308;
  border-radius: 50%;
  width: 12px;
  height: 14px;
  border-color: #030308 transparent transparent transparent;
  /* transform: translate(-2px, 14px); */
  transform: rotateZ(-34deg);
}

.green-ecosystem .bird3 {
  position: absolute;
  left: 21rem;
  top: 34rem;
  border: 2px solid #030308;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  border-color: #030308 transparent transparent transparent;
  /* transform: translate(1px, 15px); */
  transform: rotateZ(22deg);
}

.green-ecosystem .bird3::before {
  position: absolute;
  content: "";
  left: 8px;
  top: -4px;
  border: 2px solid #030308;
  border-radius: 50%;
  width: 7px;
  height: 11px;
  border-color: #030308 transparent transparent transparent;
  /* transform: translate(-2px, 14px); */
  transform: rotateZ(-34deg);
}

.green-ecosystem .mountain1 {
  border-bottom: 219px solid #66b8c0;
  border-left: 92px solid transparent;
  border-right: 88px solid transparent;
  /* border-top-left-radius: 29px; */
  height: 0;
  width: 210px;
  position: absolute;
  top: 21rem;
  left: 20rem;
}

.green-ecosystem .mountain1::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 60%;
  left: -9px;
  top: -6px;
}

.green-ecosystem .mountain1::after {
  position: absolute;
  content: "";
  width: 12px;
  height: 51px;
  background: #fff;
  top: 15px;
  border-radius: 12px;
  left: -9px;
  overflow: hidden;
  box-shadow: 12px 0 0 0 #66b8c0, 24px -15px 0 0 #fff, 34px 1px 0 -2px #66b8c0,
    41px -3px 0 -2px #fff;
}

.green-ecosystem .mountain2 {
  border-bottom: 110px solid #00899c;
  border-left: 73px solid transparent;
  border-right: 77px solid transparent;
  /* border-top-left-radius: 29px; */
  height: 0;
  width: 180px;
  position: absolute;
  top: 32rem;
  left: 8rem;
}

.green-ecosystem .mountain2::before {
  position: absolute;
  content: "";
  width: 35px;
  height: 23px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background-color: #fdfeff;
  top: -12px;
  left: -2px;
}

.green-ecosystem .mountain2::after {
  position: absolute;
  content: "";
  width: 8px;
  height: 35px;
  background: #fdfeff;
  top: 1px;
  border-radius: 12px;
  left: -3px;
  overflow: hidden;
  box-shadow: 8px 0 0 0 #008b91, 16px -7px 0 0 #fdfeff, 23px 1px 0 0 #008b91,
    29px -2px 0 -1px #fdfeff;
}

.green-ecosystem .green-bush {
  background: #85b11c;
  position: absolute;
  /* bottom: 0; */
  left: 9rem;
  width: 36px;
  height: 14px;
  border-top-right-radius: 50px;
  z-index: 1;
  top: 41.15rem;
}

.green-ecosystem .green-bush::before {
  content: "";
  background: #85b11c;
  position: absolute;
  bottom: 6px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 100%;
}

.green-ecosystem .green-bush::after {
  content: "";
  background: #85b11c;
  position: absolute;
  bottom: 0px;
  right: 18px;
  width: 25px;
  height: 25px;
  border-radius: 100%;
}

.green-ecosystem .bush1 {
  position: absolute;
  width: 9rem;
  height: 5rem;
  background: #85b01b;
  top: 40rem;
  left: 17rem;
  border-top-left-radius: 8rem;
  border-top-right-radius: 8rem;
}

.green-ecosystem .bush2 {
  position: absolute;
  width: 10.5rem;
  height: 7rem;
  background: #659a02;
  top: 39.5rem;
  left: 25rem;
  border-top-left-radius: 8rem;
  border-top-right-radius: 8rem;
}

.green-ecosystem .bush2 .patches {
  width: 1.7rem;
  height: 1rem;
  position: absolute;
  background: #85b11c;
  border-radius: 50%;
  left: 2rem;
  top: 0.85rem;
  transform: rotateZ(-23deg);
}

.green-ecosystem .bush2 .patches::after {
  position: absolute;
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50% 50% 45% 64%;
  background: #85b11c;
  left: 1.85rem;
  top: 7px;
}

.green-ecosystem .behind-bush {
  width: 23rem;
  height: 17rem;
  right: 14rem;
  top: 29rem;
  position: absolute;
  border-top-left-radius: 23rem;
  border-top-right-radius: 23rem;
  background-image: linear-gradient(90deg, #95af2f 0, #95af2f 51%, #7b9a21 50%);
}

.green-ecosystem .house {
  width: 22rem;
  height: 10rem;
  position: absolute;
  top: 35rem;
  right: 18rem;
}

.green-ecosystem .house .slab {
  bottom: 21px;
  width: 25rem;
  height: 1.25rem;
  left: -18px;
  position: absolute;
  background: #754c31;
}

.green-ecosystem .house .back {
  position: absolute;
  right: 0;
  width: 40%;
  top: 12px;
  height: 100%;
  background: #dbd4c2;
}

.green-ecosystem .house .back .main .window {
  width: 4rem;
  height: 4rem;
  background-color: #749cb0;
  position: absolute;
  top: 0;
  left: 30%;
  background-image: linear-gradient(
    180deg,
    #4d8599 0,
    #4d8599 50%,
    #749cb0 51%
  );
}

.green-ecosystem .house .back .main .window::after {
  position: absolute;
  content: "";
  right: 0;
  width: 50%;
  height: 100%;
  background: black;
  opacity: 0.4;
}

.green-ecosystem .house .back .roof {
  height: 5rem;
  /* background: #adc291; */
  position: absolute;
  top: -55px;
  border-bottom: 55px solid #dbd4c2;
  border-left: 45px solid transparent;
  border-right: 100px solid transparent;
  border-right: 45px solid transparent;
}

.green-ecosystem .house .back .roof::before {
  position: absolute;
  content: "";
  top: 31px;
  right: -68px;
  height: 10px;
  width: 8.4rem;
  background: #754c30;
  transform: rotateZ(49deg);
  border-radius: 11px;
}

.green-ecosystem .house .back .roof::after {
  position: absolute;
  content: "";
  top: 31px;
  left: -68px;
  height: 10px;
  width: 8.4rem;
  background: #3a3724;
  transform: rotateZ(-49deg);
  border-radius: 11px;
}

.green-ecosystem .house .front {
  position: absolute;
  left: 55px;
  width: 40%;
  top: 0px;
  height: 100%;
  background: #e35354;
  box-shadow: 2px 3px 5px 2px #7b9a5d73;
}

.green-ecosystem .house .front .big-window {
  width: 15px;
  height: 25%;
  background-color: #a0c4d9;
  position: absolute;
  top: 10px;
  left: 15px;
  box-shadow: 15px 0 0 0px #bbe3f9, 30px 0 0 0 #9cbfd2, 45px 0 0 0 #749cb0;
}

.green-ecosystem .house .front .big-window::after {
  position: absolute;
  content: "";
  width: 70px;
  height: 10px;
  background-color: #736c50;
  bottom: -8px;
  left: -5px;
}

.green-ecosystem .house .front .big-window::before {
  position: absolute;
  content: "";
  width: 30px;
  height: 5px;
  background-color: #6c9eb6;
  box-shadow: 30px 0 0 0 #bae7f8;
}

.green-ecosystem .house .front .side-window1 {
  height: 5rem;
  /* background: #adc291; */
  position: absolute;
  top: -50px;
  border-bottom: 50px solid #e35354;
  border-left: 43px solid transparent;
  border-right: 100px solid transparent;
  border-right: 45px solid transparent;
}

.green-ecosystem .house .front .side-window1::before {
  position: absolute;
  content: "";
  top: 34px;
  left: -75px;
  height: 10px;
  width: 9.4rem;
  background: #754c30;
  transform: rotateZ(-49deg);
  border-radius: 11px;
}

.green-ecosystem .house .front .side-window1::after {
  position: absolute;
  content: "";
  top: 32px;
  right: -75px;
  height: 10px;
  width: 9.4rem;
  background: #754c30;
  transform: rotateZ(49deg);
  border-radius: 11px;
}

.green-ecosystem .solar-panel1 {
  height: 39px;
  width: 60px;
  background: #90d2bc;
  position: absolute;
  top: 38rem;
  right: 12rem;
}

.green-ecosystem .solar-panel1::before {
  position: absolute;
  content: "";
  top: 40px;
  width: 6px;
  height: 14px;
  background: #90d2bc;
  left: 42%;
}

.green-ecosystem .solar-panel1::after {
  position: absolute;
  content: "";
  width: 17px;
  height: 15px;
  left: 3px;
  top: 3px;
  background: #6e8595;
  box-shadow: 19px 0 0 0 #6e8595, 0 18px 0 0 #6e8595, 38px 18px 0 0 #6e8595,
    19px 18px 0 0 #6e85a5, 38px 0px 0 0 #6e8595;
}

.green-ecosystem .solar-panel2 {
  height: 39px;
  width: 60px;
  background: #90d2bc;
  position: absolute;
  top: 38rem;
  right: 5rem;
}

.green-ecosystem .solar-panel2::before {
  position: absolute;
  content: "";
  top: 40px;
  width: 6px;
  height: 14px;
  background: #90d2bc;
  left: 42%;
}

.green-ecosystem .solar-panel2::after {
  position: absolute;
  content: "";
  width: 17px;
  height: 15px;
  left: 3px;
  top: 3px;
  background: #6e8595;
  box-shadow: 19px 0 0 0 #6e8595, 0 18px 0 0 #6e8595, 38px 18px 0 0 #6e8595,
    19px 18px 0 0 #6e85a5, 38px 0px 0 0 #6e8595;
}

.green-ecosystem .park-bench {
  position: absolute;
  width: 7.3rem;
  height: 3rem;
  background: #0c7152;
  top: 39.2rem;
  right: 34rem;
}

.green-ecosystem .park-bench::before {
  position: absolute;
  content: "";
  width: 21px;
  background: #e1e9ee;
  height: 24px;
  top: 3px;
  left: 3px;
  box-shadow: 23px 0 0 0 #e1e9ee, 46px 0 0 0 #e1e9ee;
}

.green-ecosystem .park-bench::after {
  position: absolute;
  content: "";
  width: 5px;
  height: 12px;
  background: #02412e;
  top: 30px;
  left: 6px;
  box-shadow: 57px 0 0 0 #02412e;
}

.green-ecosystem .windmill1 {
  position: absolute;
  top: 31rem;
  right: 15rem;
}

.green-ecosystem .windmill1 .windmill-body {
  width: 8px;
  height: 170px;
  background: #f5f7fa;
  border-radius: 5px / 70px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  left: 211px;
}

.green-ecosystem .windmill1 .windmill-wing1 {
  width: 8px;
  position: absolute;
  height: 96px;
  background: #f5f7fa;
  border-radius: 4px / 60px;
  /* left: 8px; */
  top: -4rem;
  transform: rotate(30deg);
  animation: rotate 5s infinite linear;
  animation-fill-mode: forwards;
}

.green-ecosystem .windmill1 .windmill-wing2 {
  width: 8px;
  position: absolute;
  height: 96px;
  background: #f5f7fa;
  border-radius: 4px / 60px;
  left: -1px;
  top: -4rem;
  transform: rotate(120deg);
  animation: rotate2 5s infinite linear;
  animation-fill-mode: forwards;
}

.green-ecosystem .windmill2 {
  position: absolute;
  top: 24rem;
  right: 10rem;
}

.green-ecosystem .windmill2 .windmill-body {
  width: 8px;
  height: 200px;
  background: #f5f7fa;
  border-radius: 5px / 70px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  left: 211px;
}

.green-ecosystem .windmill2 .windmill-wing1 {
  width: 8px;
  position: absolute;
  height: 96px;
  background: #f5f7fa;
  border-radius: 4px / 60px;
  /* left: 8px; */
  top: -4rem;
  transform: rotate(30deg);
  animation: rotate 5s infinite linear;
  animation-fill-mode: forwards;
}

.green-ecosystem .windmill2 .windmill-wing2 {
  width: 8px;
  position: absolute;
  height: 96px;
  background: #f5f7fa;
  border-radius: 4px / 60px;
  left: -1px;
  top: -4rem;
  transform: rotate(120deg);
  animation: rotate2 5s infinite linear;
  animation-fill-mode: forwards;
}

.green-ecosystem .cloud8 {
  width: 6rem;
  height: 1.2rem;
  background-color: #fffefe;
  position: absolute;
  top: 29.75rem;
  left: 32.5rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: -3px -3px 0 #fefde3 inset;
  z-index: 1;
}

.green-ecosystem .cloud8 div {
  position: absolute;
  content: "";
  width: 36px;
  height: 3rem;
  border-radius: 50%;
  background: #fffefe;
  top: -18px;
  left: 1rem;
  box-shadow: -3px -10px 0 #fefde3 inset;
}

.green-ecosystem .cloud7 {
  width: 10rem;
  height: 16px;
  background-color: #a3e4fe;
  position: absolute;
  top: 25.5rem;
  left: 46.5rem;
  border-top-left-radius: 15px;
  border-top-right-radius: 16px;
  box-shadow: 3px -6px 0 #93dafc inset;
}

.green-ecosystem .cloud7 div {
  position: absolute;
  content: "";
  width: 4rem;
  height: 4rem;
  background: #a3e4fe;
  border-radius: 50%;
  top: -24px;
  left: 26px;
  box-shadow: -3px -10px 0 #93dafc inset;
}

.green-ecosystem .cloud7::after {
  position: absolute;
  content: "";
  width: 2rem;
  height: 2rem;
  background: #a3e4fe;
  border-radius: 50%;
  top: -12px;
  left: 6rem;
  box-shadow: -3px -10px 0 #93dafc inset;
}

@keyframes rotate {
  from {
    transform: rotate(50deg);
  }
  to {
    transform: rotate(420deg);
  }
}
@keyframes rotate2 {
  from {
    transform: rotate(120deg);
  }
  to {
    transform: rotate(480deg);
  }
}

.green-ecosystem .rainbow {
  width: 470px;
  height: 210px;
  left: 100px;
  bottom: 82px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  position: absolute;
  top: 22rem;
  left: 36rem;
  opacity: 0.7;
}

.green-ecosystem .rainbow .rainbow-colour {
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
  border-bottom: 0;
  left: 50%;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  -webkit-transform-origin: 0 100%;
  transform-origin: 0 100%;
  bottom: 0;
  border-bottom: 0 !important;
  position: absolute;
}

.green-ecosystem .rainbow-colour:nth-child(1) {
  border: 10px solid #ac01fd;
  height: 100%;
  width: 100%;
}

.green-ecosystem .rainbow-colour:nth-child(2) {
  border: 10px solid #511ce0;
  height: 261px;
  width: 581px;
}

.green-ecosystem .rainbow-colour:nth-child(3) {
  border: 10px solid #1a9fe2;
  height: 252px;
  width: 562px;
}

.green-ecosystem .rainbow-colour:nth-child(4) {
  border: 10px solid #5ed81d;
  height: 243px;
  width: 543px;
}

.green-ecosystem .rainbow-colour:nth-child(5) {
  border: 10px solid #f8f52a;
  height: 234px;
  width: 524px;
}

.green-ecosystem .rainbow-colour:nth-child(6) {
  border: 10px solid #f7a528;
  height: 225px;
  width: 505px;
}

.green-ecosystem .rainbow-colour:nth-child(7) {
  border: 10px solid #f63b2a;
  height: 216px;
  width: 486px;
}
/* .green-ecosystem .windmill2 {
} */

.green-ecosystem .fish {
  position: absolute;
  z-index: 1;
  width: 40px;
  height: 17px;
  margin: auto;
  top: 11rem;
  left: 0;
  right: 0;
  background-color: #fed94c;
  border-radius: 50%;
  box-shadow: -3px 0 10px -4px #000;
}

.green-ecosystem .fish::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: #000;
  top: 5px;
  left: 0.7rem;
  border-radius: 50%;
  z-index: 1;
}
.green-ecosystem .fish::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 12px;
  left: 38px;
  top: 3px;
  border-left: 15px solid #ffc60d;
  border-radius: 50%;
}

.green-ecosystem .fish2 {
  top: 14rem;
  left: 7rem;
}

.green-ecosystem .fish3 {
  top: 14rem;
  /* height: 15px; */
  left: -10rem;
}

.green-ecosystem .water2 {
  width: 9.5rem;
  height: 1.4rem;
  position: absolute;
  background: #89d2e1;
  top: 2rem;
  border-radius: 10px;
  right: 7rem;
}

.green-ecosystem .water2::after {
  position: absolute;
  content: "";
  height: 1.3rem;
  width: 5rem;
  background-color: #89d2e1;
  border-radius: 10px;
  top: 3rem;
  right: -1rem;
}

.green-ecosystem .water3 {
  width: 5.5rem;
  height: 1.4rem;
  position: absolute;
  background: #89d2e1;
  top: 4rem;
  border-radius: 10px;
  right: 17rem;
}

.green-ecosystem .upper-ground {
  width: 63rem;
  height: 2rem;
  border-radius: 10px;
  background: #009a67;
  position: absolute;
  top: 42.5rem;
  left: 6.5rem;
}

.green-ecosystem .thick-grass {
  width: 68rem;
  height: 1.6rem;
  border-radius: 10px;
  background: #007449;
  position: absolute;
  top: 44.5rem;
  left: 4rem;
}

.green-ecosystem .coast {
  width: 54rem;
  height: 1.6rem;
  border-radius: 10px;
  background: #82898c;
  position: absolute;
  top: 46rem;
  left: 11rem;
}

.green-ecosystem .right {
  /* width: 50%; */
  height: 100%;
  background-color: #d4eff9;
  position: absolute;
  right: 0;
  /* z-index: 5; */
}

.polluted-ecosystem {
  width: 75rem;
  height: 70rem;
  display: flex;
  overflow: hidden;
  position: absolute;
  opacity: 1;
  z-index: 5;
}
.polluted-ecosystem .left {
  width: 100%;
  height: 100%;
  background-color: #dddddd;
  position: relative;
  /* z-index: 5; */
  /* opacity: 0.4; */
}

.polluted-ecosystem .upper-ground {
  width: 63rem;
  height: 2rem;
  border-radius: 10px;
  background: #df9f48;
  position: absolute;
  top: 42.5rem;
  left: 6.5rem;
}

.polluted-ecosystem .brown-land {
  width: 68rem;
  height: 1.6rem;
  border-radius: 10px;
  background: #c06d30;
  position: absolute;
  top: 44.5rem;
  left: 4rem;
}

.polluted-ecosystem .coast {
  width: 54rem;
  height: 1.6rem;
  border-radius: 10px;
  background: #82898c;
  position: absolute;
  top: 46rem;
  left: 11rem;
}

.polluted-ecosystem .apartment {
  width: 14rem;
  height: 13rem;
  position: absolute;
  top: 31rem;
  right: 10rem;
  background-image: linear-gradient(90deg, #777278 0, #777278 73%, #a6a2a3 73%);
}

.polluted-ecosystem .apartment::after {
  position: absolute;
  content: "&q.........完整代码请登录后点击上方下载按钮下载查看

网友评论0