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.


                //- If JS fails, first image is shown without any carousel controls



  display: flex
  align-items: center
  height: 100vh
  width: 100vw
  background: pink
  user-select: none

  display: none

  width:  500px
  height: 500px
  display: flex
  overflow: hidden
  margin: auto
  position: relative

    z-index: 9999
    flex-grow: 0
    flex-shrink: 1
    flex-basis: 10%
    align-self: center
    padding: 0 12px 10px 12px
    font-family: arial
    font-size: 60px
    color: white
      cursor: pointer
      background: blue
    order: 1
    margin-right: -40px
    text-align: right

    order: 3
    margin-left: -40px
    text-align: left

    order: 2
    width: 500px
    overflow: hidden
    flex-grow: 1
    flex-shrink: 0
    flex-basis: 80%
    z-index: -1    
    width: 100%
    position: absolute
    bottom: 20px
    left: 0
    z-index: 999
    text-align: center

      color: white
      display: inline
      font-size: 30px
      opacity: 0.4
        opacity: 1
      & + li
        margin-left: 15px
        cursor: pointer
    width: 100vw
    height: 100vh
    filter: grayscale(90%)

      position:  0 0
      color: pink
      blend-mode: color-burn
    background-image: url('')
    background-image: url('')
    background-image: url('')

    height: 100vh
    width: 100vw
    display: flex


    infinite: true,
    fade: true,
    speed: 300,
    autoplay: true,
    dots: true,
    nextArrow: '<small class="slick-next">&rarr;</small>',
    prevArrow: '<small class="slick-prev">&larr;</small>',
    customPaging : function(slider, i) {
      var thumb = $(slider.$slides[i]).data();
      // return '<a>'+(i+1)+'</a>';
      return '<a>&bull;</a>';