"Pure CSS Landscape" made by devansh

<!DOCtype html>
<html>
  <style>div {
  position: absolute;
  box-sizing: border-box;
}

.container {
  width: 135vmin;
  height: 96vmin;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.sky {
  width: 100%;
  height: 100%;
  background-color: #89BFBE;
  z-index: -1;
}

.ground.first {
  width: 110%;
  height: 40%;
  bottom: 0;
  background-color: #C9BE20;
}

.ground.second {
  width: 140%;
  height: 25%;
  bottom: 0;
  left: -10%;
  background-color: #C1B726;
  transform: rotateZ(5deg);
}

.ground.third {
  width: 140%;
  height: 20%;
  bottom: -5%;
  left: -10%;
  background-color: #CCAD33;
  transform: rotateZ(-5deg);
}

.tree.one {
  width: 5vmin;
  height: 15vmin;
  bottom: 100%;
  left: 20%;
}

.tree.two {
  bottom: 100%;
  left: 30%;
  width: 5vmin;
  height: 20vmin;
}

.tree .body {
  display: block;
  width: 100%;
  height: 90%;
  background: #1b771b;
  border-radius: 100% 100% 100% 100%/100% 100% 50% 50%;
  box-shadow: inset 1.5vmin -0.5vmin #186b18;
}

.tree .trunk {
  width: 13%;
  height: 10%;
  background: #484444;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.tree .shadow {
  width: 50%;
  height: 200%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transform: rotateZ(-104deg);
  transform-origin: bottom center;
  left: -7%;
  bottom: -7%;
}</style>
<body>
 <div class="container">
  <div class="sky"></div>
  <div class="ground first">
  <div class="tree one">
    <div class="body"></div>
    <div class="trunk"></div>
    <div class="shadow"></div>
  </div>
  <div class="tree two">
    <div class="body"></div>
    <div class="trunk"></div>
    <div class="shadow"></div>
  </div>
  </div>
  <div class="ground second"></div>
  <div class="ground third"></div>
</div>
</body>
</html>

Comments

Popular posts from this blog

Chandrayan 3 Mission Special :Animation

Python Basic Programs By Devansh Mishra.

" Words moving in circular motion as Tiny Particles " Animation