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.


  - (1..50).each do


  return floor(math(0, 'random')*(max - min + 1) + min)

  return floor(math(0, 'random')*(max - min + 1) + min)s

  height 100vh
  width 100vw
  background: linear-gradient(to bottom, #edfffa 0%,#31c5d6 100%)
  position relative
  overflow hidden

  display block

  border-radius: 100%
  opacity: .8
  position absolute

for $i in (1..50)
  $bgpos = $i % 2 == 0 ? top right : center

      background: radial-gradient(ellipse at $bgpos, #b8c6c6 0%,#30b3d3 46%,#20628c 100%)
      width: random(5, 100)px
      height: @width
      left: random(1, 100)vw
      bottom: random(1, 100)vh
      animation move+$i infinite randomT(3, 15)

  @keyframes move{$i}
      bottom: -100px

      bottom: random(0, 100)vh
      transform: translate(random(-100, 200)px, 0)
      opacity 0