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. 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

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

              
                <!-- outer pieces  -->
<div class="pieces">
  <span class="pieces__item pieces__1"></span>
  <span class="pieces__item pieces__2"></span>
  <span class="pieces__item pieces__3"></span>
  <span class="pieces__item pieces__4"></span>
  <span class="pieces__item pieces__5"></span>
  <span class="pieces__item pieces__6"></span>
</div>

<!-- inner pieces  -->
<div class="pieces pieces_inner">
  <span class="pieces__item pieces__1"></span>
  <span class="pieces__item pieces__2"></span>
  <span class="pieces__item pieces__3"></span>
  <span class="pieces__item pieces__4"></span>
  <span class="pieces__item pieces__5"></span>
  <span class="pieces__item pieces__6"></span>
</div>

<!-- box lines  -->
<div class="lines">
  <span class="lines-item lines-item_1a"></span>
  <span class="lines-item lines-item_2a"></span>
  <span class="lines-item lines-item_3a"></span>
  <span class="lines-item lines-item_4a"></span>
  <span class="lines-item lines-item_5a"></span>
  <span class="lines-item lines-item_6a"></span>
  <span class="lines-item lines-item_inside lines-item_1b"></span>
  <span class="lines-item lines-item_inside lines-item_2b"></span>
  <span class="lines-item lines-item_inside lines-item_3b"></span>
  <span class="lines-item lines-item_inside lines-item_4b"></span>
  <span class="lines-item lines-item_inside lines-item_5b"></span>
  <span class="lines-item lines-item_inside lines-item_6b"></span>
</div>
              
            
!

CSS

              
                .pieces {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 400px;
  height: 400px;
  transform: rotateZ(30deg);
}

.pieces_inner {
  z-index: 2;
  transform: rotateZ(30deg) scale(0.37);
}

.pieces__item {
  left: 100px;
  top: 200px;
  position: absolute;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 173px solid #fff;
  transform-origin: top center;
}

.pieces__1 {}
.pieces__2 {
  transform: rotateZ(60deg);
}
.pieces__3 {
  transform: rotateZ(120deg);
}
.pieces__4 {
  transform: rotateZ(180deg);
}
.pieces__5 {
  transform: rotateZ(240deg);
}
.pieces__6 {
  transform: rotateZ(300deg);
}

.pieces__1 { border-bottom-color: #366038; }
.pieces__2 { border-bottom-color: #fe6906; }
.pieces__3 { border-bottom-color: #ffcf09; }
.pieces__4 { border-bottom-color: #a50019; }
.pieces__5 { border-bottom-color: #470112; }
.pieces__6 { border-bottom-color: #0135ae; }

.pieces_inner .pieces__1 { border-bottom-color: #529754; }
.pieces_inner .pieces__2 { border-bottom-color: #ffaa00; }
.pieces_inner .pieces__3 { border-bottom-color: #ffec00; }
.pieces_inner .pieces__4 { border-bottom-color: #d90018; }
.pieces_inner .pieces__5 { border-bottom-color: #6f0019; }
.pieces_inner .pieces__6 { border-bottom-color: #0055dc; }

.lines {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  transform-origin: 200px 200px;
  transform: rotateZ(30deg) scale(0.37);
}

.lines-item {
  width: 200px;
  height: 0px;
  position: absolute;
  left: 90px;
  top: 373px;
  transform-origin: 110px -173px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid #fff;
}
.lines-item_inside {
  border-width: 0 5px 9px;
}

.lines-item_1a {
  border-bottom-color: #a1e6a6;
}
.lines-item_2a {
  border-bottom-color: #fff200;
  transform: rotateZ(60deg);
}
.lines-item_3a {
  border-bottom-color: #ffff00;
  transform: rotateZ(120deg);
}
.lines-item_4a {
  border-bottom-color: #fb003b;
  transform: rotateZ(180deg);
}
.lines-item_5a {
  border-bottom-color: #cd0031;
  transform: rotateZ(240deg);
}
.lines-item_6a {
  border-bottom-color: #00beff;
  transform: rotateZ(300deg);
}

.lines-item_1b {
  border-bottom-color: #a1e6a6;
  transform: rotateZ(240deg);
  transform-origin: 107px -53px;
}
.lines-item_2b {
  border-bottom-color: #fff200;
  transform: rotateZ(180deg);
  transform-origin: 55px -82px;
}
.lines-item_3b {
  border-bottom-color: #ffff00;
  transform: rotateZ(0deg) translate3d(-100px,-182px,0);
}
.lines-item_4b {
  border-bottom-color: #fb003b;
  transform: rotateZ(300deg);
  transform-origin: -103px -178px;
}
.lines-item_5b {
  border-bottom-color: #cd0031;
  transform: rotateZ(120deg) translate3d(-100px, -182px,0);
}
.lines-item_6b {
  border-bottom-color: #00beff;
  transform: rotateZ(60deg);
  transform-origin: 212px 13px;
}
              
            
!

JS

              
                
              
            
!
999px

Console