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


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


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.


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.


                mixin parts(n, deepness)
  if deepness > 0
    - for (var i = 0; i < n; i++)
      .part= ''
        +parts(n, deepness - 1)

    +parts(1, 20)


  perspective: 800
  background: #111
  font-size: 10px

  @include center
  width: 10em
  height: 10em
  transform: rotateX(60deg) rotateZ(90deg)
  animation: zRotateView 10s infinite linear
    transform-style: preserve-3d
    position: absolute
    width: 100%
    height: 100%
    transform: rotateX(3deg) rotateY(3deg) rotateZ(3deg)
    animation: rotate 60s linear infinite
      content: ''
      display: block
      position: absolute
      width: 100%
      height: 100%
      box-sizing: border-box
      border-radius: 50%
      //border-left: 1px solid white
      box-shadow: -1px 0 rgba(white, 0.5), -4px 0 8px rgba(200, 200, 255, 0.2), inset 4px 0 8px rgba(255, 200, 200, 0.2)
      animation: zRotate 1s linear infinite
@keyframes rotate
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg)
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg)

@keyframes zRotateView
    transform: rotateX(60deg) rotateZ(0deg)
    transform: rotateX(60deg) rotateZ(360deg)
@keyframes zRotate
    transform: rotateZ(0deg)
    transform: rotateZ(360deg)