Pen Settings

HTML

CSS

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <div class="wrap push">
  <header>
    <a href="#menu" class="menu-link">&#9776;</a>
    <h1>Logo</h1>

  </header>

<nav id="menu" class="panel" role="navigation">
    <ul>
        <li><a href="#">Home</a></li>
        <li><a href="#">The Ballad of El Goodo</a></li>
        <li><a href="#">Thirteen</a></li>
        <li><a href="#">September Gurls</a></li>
        <li><a href="#">What's Going Ahn</a></li>
    </ul>
</nav>
  <article>
    <h1>Title</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dignissimos et odio inventore consectetur debitis pariatur praesentium fugit accusantium voluptatibus eaque placeat minus numquam cum dolore facilis nemo blanditiis voluptatem iusto.</p>
    <p>Eius provident illo cum eum in odit culpa quia fugit accusamus harum eligendi cumque amet quod inventore laudantium sunt deleniti delectus nemo veniam ducimus mollitia minus adipisci illum accusantium asperiores?</p>
    <p>Quisquam quasi nemo eveniet inventore placeat iure obcaecati distinctio praesentium labore ipsa! Perspiciatis itaque perferendis eaque tempora deserunt non alias ab unde aperiam corporis culpa earum illo ullam suscipit nesciunt?</p>
    <p>Iusto nesciunt consectetur officia officiis fuga at nisi minima quibusdam molestiae aliquam aut autem necessitatibus beatae inventore illum distinctio perferendis itaque sunt eaque culpa quo dignissimos esse. Soluta rerum nemo.</p>
    <p>Hic non eos tenetur consectetur commodi illo deserunt amet aliquam voluptatum odit. Illo facilis magnam minima expedita corrupti nam rerum architecto nobis! Rerum nulla dolores vel totam dolor maxime ad?</p>
  </article>
  </div>
              
            
!

CSS

              
                .panel {
    position: fixed;
    left: -15.625em; /*left or right and the width of your navigation panel*/
    width: 15.625em; /*should match the above value*/
  
}
header {
  text-align: center;
  overflow: hidden;
  .menu-link {
    float: left;
    margin-top: 20px;
  }
}
.wrap { 
  position: relative; 
  max-width: 580px;
  margin: auto;
}
.panel {
  background: #ddd; 
  box-shadow: inset -5px 0 10px -5px rgba(0,0,0,0.4);
  ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  a {
    display: block;
    text-decoration: none;
    color: #000;
    padding: 10px;
    border-bottom: 1px solid #000;
  }
}
.menu-link {
  text-decoration: none;
  display: inline-block;
  padding: 10px;
  color: #000;
  background: #ddd;
  border-radius: 5px;
}
              
            
!

JS

              
                /*! bigSlide - v0.4.3 - 2014-01-25
* https://ascott1.github.io/bigSlide.js/
* Copyright (c) 2014 Adam D. Scott; Licensed MIT */
!function(a){"use strict";a.fn.bigSlide=function(b){var c=a.extend({menu:"#menu",push:".push",side:"left",menuWidth:"15.625em",speed:"300"},b),d=this,e=a(c.menu),f=a(c.push),g=c.menuWidth,h={position:"fixed",top:"0",bottom:"0","settings.side":"-"+c.menuWidth,width:c.menuWidth,height:"100%"},i={"-webkit-transition":c.side+" "+c.speed+"ms ease","-moz-transition":c.side+" "+c.speed+"ms ease","-ms-transition":c.side+" "+c.speed+"ms ease","-o-transition":c.side+" "+c.speed+"ms ease",transition:c.side+" "+c.speed+"ms ease"};return e.css(h),f.css(c.side,"0"),e.css(i),f.css(i),e._state="closed",e.open=function(){e._state="open",e.css(c.side,"0"),f.css(c.side,g)},e.close=function(){e._state="closed",e.css(c.side,"-"+g),f.css(c.side,"0")},d.on("click.bigSlide",function(a){a.preventDefault(),"closed"===e._state?e.open():e.close()}),d.on("touchend",function(a){d.trigger("click.bigSlide"),a.preventDefault()}),e}}(jQuery);    
$(document).ready(function() {
        $('.menu-link').bigSlide();
    });
              
            
!
999px

Console