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.


    - var x = 4
    while x > 0
        - x--
        - var n = 8
        while n > 0
          - n--


                /* Colors */
uhf-white = #FFFFFF
uhf-red = #A80000
uhf-black = #000000
uhf-blue = #0078D4
ms-green = #81BB07
ms-blue = #00A6F0
ms-red = #F35326
ms-yellow = #FFBA0B

    width 100%
    height 100vh
    position absolute
    display flex
    width 204px
    flex-flow wrap
    top 50%
    left 50%
    transform translate(-50%, -50%)
    width 100px
    height 100px
    display inline-block
    margin-bottom 12px
    margin-right 2px
    opacity 0
    animation fade-in .3s ease-in forwards
        background-color ms-red
        background-color ms-green
        background-color ms-blue
      for num in (1..8)
          animation-delay -.1s * num
      for num in (1..8)
          animation-delay -.8 - .1s * num
      width 8px
      height 100px
      background ms-yellow
      display inline-block
      animation slide .8s ease-in-out infinite alternate

@keyframes slide
    transform translateY(20%)

@keyframes fade-in
    opacity 1