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.

            
              <div class="owl-carousel">
    <div class="item">
      <h4>1</h4>
      <p>The life span of giant pandas in the wild is approximately 20 years. Captive pandas may live to be 25-30 years old.</p>
  </div>
    <div class="item">
      <h4>2</h4>
      <p>The eyespots of a giant panda cub are initially in the shape of a circle. As the cub grows, the circles become shaped like a teardrop.</p>
  </div>
    <div class="item">
      <h4>3</h4>
      <p>The giant panda has been on the endangered species list since 1990. The most significant threats to pandas are habitat loss and poaching. China is only approximately 5% greater than the U.S. in area but has four times the population.</p>
  </div>
    <div class="item">  
      <h4>4</h4>
      <p>Pandas have been a symbol of peace in China. For example, hundreds of years ago, warring tribes in China would raise a flag with a picture of a panda on it to stop a battle or call a truce.</p></div>
    <div class="item">
      <h4>5</h4>
      <p>Giant pandas are on the brink of extinction, with just over 1,000 pandas left in the world. Scientists are hoping to increase the wild panda population to 5,000 by 2025.</p>
  </div>
    <div class="item">
      <h4>6</h4>
      <p>Pandas can stand upright, but their short hind legs aren’t strong enough to support their bodies. A panda’s bones are twice as heavy as the bones of other animals the same size.</p></div>
    <div class="item">
      <h4>7</h4>
      <p>Pandas do not run fast—a slow trot is as fast as they can go. The fastest bear is the black bear, which can run 35 miles per hour. That’s about as a fast as a horse or deer.</p>
       <p class="promo">Use promo code <strong>panda2018</strong> to save 20% on your purchase</p>
  </div>
    <div class="item">
      <h4>8</h4>
      <p>It takes about five years for a female cub to become an adult and up to seven years for a male cub.</p>
  </div>
    <div class="item">
      <h4>9</h4>
      <p>Young pandas stay with the mothers for as long as three years, which means that a wild panda may raise only three or four cubs in a lifetime.</p>
  </div>
    <div class="item">
      <h4>10</h4>
      <p>Pandas have lived on Earth for two to three million years.</p>
  </div>
  <div class="item">
      <h4>Thanks for reading :) </h4>
      <a href="https://www.factretriever.com/giant-panda-facts">Read more panda facts here!</a>
      <p></p>
  </div>
</div>

            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Roboto');

.item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  border: 1px solid #aeaeae;
  margin: auto;
  text-align: center;
  position: relative;
  width: 400px;
  height: 300px;
  padding: 1rem;
  font-family: Roboto;
  
   &::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url('https://i.lensdump.com/i/8tf5d9.png');
    opacity: 0.3;
    background-size: cover;
  }
}

.promo {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 0;
  font-size: 10px;
  padding: 0.25rem;
}

a {
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in; 
  
  &:focus, &:active, &:hover {
    font-weight: bold;
    transition: all 0.3s ease-in; 
  }
  
}
            
          
!
            
               $('.owl-carousel').owlCarousel({
    loop:true,
    margin:10,
    nav:true,
   dots: false,
   items: 1
});
            
          
!
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