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.


                <nav class="desktop">
  <a href="#">Desktop 1</a>
  <a href="#">Desktop 2</a>
  <a href="#">Desktop 3</a>
  <a href="#">Desktop 4</a>

<nav class="mobile">
    <a href="#">Mobile 1</a>
    <a href="#">Mobile 2</a>
    <a href="#">Mobile 3</a>
    <a href="#">Mobile 4</a>

  <h1>Basic Hamburger Menu</h1>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Porro quasi sint error perspiciatis quis rem nisi reiciendis doloribus cumque aliquid molestiae quos sed ex commodi ad eveniet asperiores distinctio vero.


  height: 2000px;

  display: none;
  position: fixed;
  width: 100%;
  top: 0;
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    border: 0;
    text-indent: 200%;
    overflow: hidden;
    background: rgba(255,255,255,.8) url( center no-repeat;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-size: 80%;
    width: 30px;
    height: 30px;
    outline: none;
    transition: all 400ms ease;
      transform: rotate(90deg);
      background-color: transparent;
      border: 0;
    display: block;

  background: #eee;
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: #222;
  font-weight: bold;
  &:hover, &:active, &:focus
    background: darken(#eee, 3%);

  display: block;
  overflow: hidden;
    width: 25%;
    float: left;
    border-right: 1px solid #ddd;
    box-sizing: border-box;
      border-right: none;

  padding: 0 30px 15px;

@media (max-width: 800px)
    display: block;
    display: none;


                $('button').click(function() {