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.


  - for (var i = 1; i < 7; i++)
    img(src='//'+60+i, alt="img")
  a.Link(href="", target="_blank") CSS version


  margin 0
  padding 0
  box-sizing border-box
  position relative
  height 100vh
  overflow hidden
  background #000
    position absolute
    min-width 100%
    min-height 100%
    height auto
    transition-property  transform, opacity
    transition-duration  9s, 4s
    transform-origin bottom left
      transform-origin top right
      transform-origin top left
      transform-origin bottom right
    opacity 0
      opacity 1
      z-index -1
    opacity 1
    transform scale(1.2)
  position absolute
  bottom 0
  right 0
  z-index 2
  color #FFF
  font-family sans-serif
  font-size 2em
  margin 1em
  padding .5em 1em .5em 2.2em
    content '►'
    position absolute
    left .8em
    background #000



                (function() {
  var images = document.querySelectorAll('#slideshow img'),
    imgLength = images.length,
    i = 1;

  function setFirst() {
    images[0].className = "fx";
  window.setTimeout(setFirst, 1000);

  window.setInterval(kenBurns, 6200);

  function kenBurns() {
    images[i].className = "fx";

    if (i === imgLength) {
      i = 0;
      images[imgLength - 2].className = "";

    if (i === 1) {
      images[imgLength - 1].className = "";
    if (i > 1) {
      images[i - 2].className = "";