Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <section id="section--hero" class="pt-5 pb-5">
  <div class="container">
    <div class="row d-flex align-items-center">
      <div class="col-6">
        <h1>Nulla dolore amet proident magna voluptate enim</h1>
      </div>
      <div class="col-6">
        <img src="https://placeimg.com/640/280/nature">
      </div>
     </div>
  </div>
</section>
<section id="section--callout_product" class="pt-5 pb-5 bg-circle">
   <div class="green-ball"></div>
   <div class="dpurple-ball"></div>
  <div class="container" style="position:relative;">
    <div class="row d-flex align-items-center justify-content-center">
      <div class="col-10">
        
        <h2 class="text-white text-center">Sint id id fugiat eiusmod sit. Adipisicing laborum ut mollit quis culpa exercitation reprehenderit. Deserunt aliquip culpa eu esse labore quis proident. Non ut irure incididunt velit sunt commodo aute esse sit minim. </h2>
      </div>
    </div>
  </div>
  </section>
              
            
!

CSS

              
                section {
  min-height:330px;
}
section.bg-circle {
  background-color:#007eff;
  position:relative;
}
.green-ball {
  position:absolute;
  left:-30px;
  top:-30px;
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #4fe6b5;

  animation: green-ball 3s ease-in 2s 1 alternate forwards;
}

@keyframes green-ball {
  0% {
    animation-timing-function: ease-in;
    opacity: 0;
    transform: translate3d(-105px, -105px, 0);
  }

  14% {
    opacity: 1;
  }

  40% {
    animation-timing-function: ease-in;
    transform: translate3d(-75px, -75px, 0);
  }

  65% {
    animation-timing-function: ease-in;
    transform: translate3d(-55px, -55px, 0);
  }

  82% {
    animation-timing-function: ease-in;
    transform: translate3d(-25px, -25px, 0);
  }

  93% {
    animation-timing-function: ease-in;
    transform: translate3d(-10px, -10px, 0);
  }

  25%,
  55%,
  75%,
  87% {
    animation-timing-function: ease-out;
    transform: translate3d(0, 0, 0);
  }

  100% {
    animation-timing-function: ease-out;
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.dpurple-ball {
  position:absolute;
  right:-100px;
  bottom:0;
  display: block;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background-color: #2e0a6c;

  animation: dpurple-ball 6s ease-in 4s 1 alternate forwards;
}

@keyframes dpurple-ball {
    0% {
    animation-timing-function: ease-in;
    opacity: 0;
    transform: translate3d(105px, -105px, 0);
  }

  14% {
    opacity: 1;
  }

  40% {
    animation-timing-function: ease-in;
    transform: translate3d(75px, -75px, 0);
  }

  65% {
    animation-timing-function: ease-in;
    transform: translate3d(55px, -55px, 0);
  }

  82% {
    animation-timing-function: ease-in;
    transform: translate3d(25px, -25px, 0);
  }

  93% {
    animation-timing-function: ease-in;
    transform: translate3d(10px, -10px, 0);
  }

  25%,
  55%,
  75%,
  87% {
    animation-timing-function: ease-out;
    transform: translate3d(0, 0, 0);
  }

  100% {
    animation-timing-function: ease-out;
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console