css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <link href="https://fonts.googleapis.com/css?family=Amatic+SC" rel="stylesheet">
<div id="main">
  <div class="card">
    <h1>Deforestation</h1>
    <p class="para1">Deforestation, clearance, or clearing is the removal of a forest or stand of trees<br> where the land is thereafter converted to a non-forest use. Examples of deforestation include<br> conversion of forestland to farms, ranches, or urban use. The most concentrated deforestation<br> occurs in tropical rainforests. About 30 percent of Earth's land surface is covered by forests.</p>
    <p class="para2">Deforestation occurs for multiple reasons: trees are cut down to be used for building<br> or sold as fuel (sometimes in the form of charcoal or timber), while cleared land is used<br> as pasture for livestock and plantation. The removal of trees without sufficient reforestation<br> has resulted in habitat damage, biodiversity loss, and aridity. It has adverse impacts on<br> biosequestration of atmospheric carbon dioxide. Deforestation has also been used in war to<br> deprive the enemy of vital resources and cover for its forces.</p>
    <div class="leaves1"></div>
    <div class="leaves2"></div>
    <div class="circ">
      <h4>1</h4>
    </div>
  </div>
</div>
            
          
!
            
              html, body {
  overflow: hidden;
  background: #66a266;

}
#main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
  animation: fadeIn 4s ease-in;
}
.card {
  height: 550px;
  width: 900px;
  background: #FFFFFF;
  overflow: hidden;
}
h1 {
  position: absolute;
  left: 120px;
  top: 30px;
  font-size: 70px;
  font-family: 'Amatic SC', cursive;
}
p, .para1 {
  position: absolute;
  top: 200px;
  left: 150px;
}
p, .para2 {
  content: "";
  top: 300px;
}
.leaves1 {
  position: absolute;
  left: 700px;
  top: 10px;
  height: 700px;
  width: 200px;
  background-image: url(http://www.myolab.com.au/wp-content/uploads/2016/09/contact-leaves1.png);
  background-size: contain;
  background-repeat: no-repeat;
  overflow: hidden;
}
.leaves2 {
  position: absolute;
  height: 230px;
  width: 500px;
  top: 320px;
  background-image: url(http://www.myolab.com.au/wp-content/uploads/2016/09/services-leaves5.png);
  background-size: contain;
  background-repeat: no-repeat;
  overflow: hidden;
}
.circ {
  position: absolute;
  top: 450px;
  left: 800px;
  height: 100px;
  width: 100px;
  background-image: url(https://images.vexels.com/media/users/3/147201/isolated/preview/5a6b5f8b43dc8224fbed8796208d7d04-sunrays-dots-and-lines-icon-by-vexels.png);
  background-size: contain;
  background-repeat: no-repeat;
}
h4 {
  position: absolute;
  left: 45px;
  top: 10px;
  font-size: 20px;
}
.circ:hover{
  animation: rotateRight 2s;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes rotateRight {
  from {
				-webkit-transform: rotate(0deg);
		}
		to {
				-webkit-transform: rotate(359deg);
		}
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console