Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <ul class="boxes">
  
  <li class="box  box-alpha">
    <section class="box-content">
      <header class="box-header"></header>
      <footer class="box-footer">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Enim sit inventore sint omnis iste eos soluta expedita iure dolor numquam quisquam nam vel!</footer>
    </section>
  </li>
  
  <li class="box  box-beta">
    <section class="box-content">
      <header class="box-header"></header>
      <footer class="box-footer">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Enim sit inventore sint omnis iste eos soluta expedita iure dolor numquam quisquam nam vel!</footer>
    </section>
  </li>
  
  <li class="box  box-gamma">
    <section class="box-content">
      <header class="box-header">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Enim sit inventore sint omnis iste eos soluta expedita iure dolor numquam quisquam nam vel!</header>
      <footer class="box-footer"></footer>
    </section>
  </li>
  
  <li class="box  box-delta">
    <section class="box-content">
      <header class="box-header">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Enim sit inventore sint omnis iste eos soluta expedita iure dolor numquam quisquam nam vel!</header>
      <footer class="box-footer"></footer>
    </section>
  </li>
  
</ul>
              
            
!

CSS

              
                *, 
:after,
:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.boxes {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/**
 * 1. Feel free to move to inline-block or whatever
 */
.box {
  float: left; /* 1 */
  width: 50%;
}

/**
 * 1 Since blocks don't contain anything, this makes sure they appear
 */
.box-header,
.box-footer {
  min-height: 5em; /* 1 */
}

.box-alpha .box-header {
  background: #1abc9c;
}

.box-alpha .box-footer {
  //background: #148f77;
}

.box-beta .box-header {
  background: #2ecc71;
}

.box-beta .box-footer {
  //background: #25a25a;
}

.box-gamma .box-header {
  //background: #217dbb;
}

.box-gamma .box-footer {
  background: #3498db;
}

.box-delta .box-header {
  //background: #804399;
}

.box-delta .box-footer {
  background: #9b59b6;
}

body {
  background: #CCC;
  background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
}
/* My style */
$dis: 10%; // horizontal and vertical space between the blocks
$dis2: 20%; // distance from the transparent circle
$radius1: 15%; // radius of the transparent circle
$radius2: 20%; // radius of the dark blue circle
$radius3: 15%; // radius of the ligh blue circle

.box-alpha {
  position: relative;
}
.box-alpha:before,
.box-alpha:after {
  content: "";
  display: block;
  background: #2F3E4E;
  width: $radius2;
  padding: $radius2 0 0;
  position: absolute;
  right: 0;
  border-radius: 100%;
  top: 100%;
  margin-top: $radius2 / 2 * -1;
  margin-right: $radius2 / 2 * -1;
}
.box-alpha:after {
  background: #34495E;
  width: $radius3;
  padding: $radius3 0 0;
  margin-top: $radius3 / 2 * -1;
  margin-right: $radius3 / 2 * -1;
}
.box-content {
  padding: $dis;
  position: relative;
}
.box-header, .box-footer {
  overflow: hidden;
}
.box-alpha .box-footer:after,
.box-beta .box-footer:after,
.box-gamma .box-header:before,
.box-delta .box-header:before {
  background: transparent;
  content: "";
  display: block;
  padding: $radius1 0 0;
  width: $radius1;
  position: relative;
  z-index: -1;
}
.box-alpha .box-footer:after {
  float: right;
  border-radius: 100% 0 0 0;
  box-shadow: 0 0 0 99em #148f77;
  -webkit-transform: scale(2) translate($dis2, $dis2);
  -ms-transform: scale(2) translate($dis2, $dis2);
  transform: scale(2) translate($dis2, $dis2);
}
.box-beta .box-footer:after {
  float: left;
  border-radius: 0 100% 0 0;
  box-shadow: 0 0 0 99em #25a25a;
  -webkit-transform: scale(2) translate($dis2 * -1, $dis2);
  -ms-transform: scale(2) translate($dis2 * -1, $dis2);
  transform: scale(2) translate($dis2 * -1, $dis2);
}
.box-gamma .box-header:before {
  float: right;
  border-radius: 0 0 0 100%;
  box-shadow: 0 0 0 99em #217dbb;
  -webkit-transform: scale(2) translate($dis2, $dis2 * -1);
  -ms-transform: scale(2) translate($dis2, $dis2 * -1);
  transform: scale(2) translate($dis2, $dis2 * -1);
}
.box-delta .box-header:before {
  float: left;
  border-radius: 0 0 100% 0;
  box-shadow: 0 0 0 99em #804399;
  -webkit-transform: scale(2) translate($dis2 * -1, $dis2 * -1);
  -ms-transform: scale(2) translate($dis2 * -1, $dis2 * -1);
  transform: scale(2) translate($dis2 * -1, $dis2 * -1);
}
              
            
!

JS

              
                
              
            
!
999px

Console