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

+ 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(4, 3)



                $parts: 4
$z: 0.06em

@mixin center
  position: absolute
  margin: auto
  top: 0
  right: 0
  left: 0
  bottom: 0

html, body
  overflow: hidden
  width: 100%
  height: 100%
  background: #122649
  user-select: none

  @include center
  font-size: 300px
  //perspective: 400
  transform: rotateX(60deg) rotateZ(45deg)
  width: 1em
  height: 1em
  position: absolute
  transform-style: preserve-3d
  backface-visibility: hidden

    font-size: 0.5em
    transform-origin: 100% 100% (-$z)
    &::after, &::before
      content: ''
      display: block
      position: absolute
      width: 100%
      height: $z
      transform-origin: 50% 100%
      bottom: 0
      transform: rotateX(90deg)
      background: #00326B
      width: $z
      height: 100%
      right: 0
      transform-origin: 100% 50%
      transform: rotateY(-90deg)
      background: #004298

    transform: scale3d(1, 1, 1) translateZ($z / 2)
    transition: transform 0.8s, background 0.8s, box-shadow 0.8s
      transform: scale3d(1, 1, 2) translateZ($z / 4)  
      transition: transform 0.2s, background 0.8s, box-shadow 0.8s
      cursor: pointer
        background: #fff !important // sorry
        box-shadow: 0 0 0.5em #fff
        transition: transform 0.8s, background 0.1s, box-shadow 0.1s
      top: 0
      left: 0
      top: 0
      right: 0
      bottom: 0
      right: 0
      bottom: 0
      left: 0
    @for $i from 1 through $parts
        background: hsl(10 * $i + 180, 80%, 50%)