Pen Settings



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


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.


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.


      - 6.times do




  position: absolute
  +top-left(-20px, 40px)
  +w-h(250px, 618px)
  background-color: #333
  border-radius: 25px
  animation: phoneEnter .4s ease-in-out forwards
    background-color: #555
    border-radius: 20px
    +top-right(20px, -15px)
    +w-h(15px, calc(100% - 44px))
    background-color: #888
    border-radius: 0 20px 200% 0%
    transform: skewY(70deg)
    transform-origin: top left

  position: absolute
  +top-left(20px, calc(50% - 50px))
  +w-h(100px, 10px)
  background-color: #555
  border-radius: 10px

    +top-right(20px, 15px)
    background-color: #555
    border-radius: 5px
    box-shadow: -1px 1px 2px 0 rgba(red, .4) inset

  position: absolute
  +top-left(70px, 8px)
  +w-h(calc(100% - 16px), calc(100% - 150px))
  padding: 4px
  background-color: #fff
  opacity: 0
  overflow: hidden
  animation: fadeIn .3s ease-in-out forwards
  animation-delay: 1.2s
$tile-colors: (1: #26A69A, 2: #E53935, 3: #FFC107, 4: #03A9F4, 5: #CDDC39, 6: #673AB7)
  position: relative
  display: inline-flex
  align-items: center
  justify-content: center
  +w-h(calc(50% - 2px), 150px)
  margin: 0
  background-color: #ddd
  opacity: 0
  animation: fadeInUp .3s ease-in-out forwards
  @each $i, $color in $tile-colors
    &:nth-child(#{ $i })
      background-color: $color
      animation-delay: 1.6s + $i * .2s

@keyframes phoneEnter
    opacity: 0
    transform: none
    opacity: 1
    transform: rotateX(-60deg) rotateY(10deg) rotateZ(25deg)