Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div id="wrapper">
  <div id="leftWrapper">
      <div id="listView" class="list">
        <li class="list-item-active"><a href="#">Home</a></li>
        <li><a href="#">About</a></li>
        <li><a href="#">Projects</a></li>
        <li><a href="#">Shop</a></li>
        <li><a href="#">Social</a></li>
        <li><a href="#">Portfolio</a></li>
        <li><a href="#">Contact</a></li>
      </div>
    </div>

    <div id="rightWrapper">
      <div id="header"><a id="fullPage" href="#">|||</a></div>
      <div id="contentWrapper">
        <article id="showCase">
          <div class="article-header">Some of my other designs</div>
          <section>
            <iframe id="iframe_embed_1188432" src="https://s.codepen.io/RavingAPD/fullcpgrid/zqvKx" data-slug-hash="zqvKx" data-title="Clean CSS3 menu " allowtransparency="true" frameborder="0" scrolling="no" data-src="https://s.codepen.io/RavingAPD/fullcpgrid/zqvKx" sandbox="allow-scripts allow-pointer-lock allow-same-origin">
            </iframe><br />
            <a href="https://codepen.io/RavingAPD/pen/zqvKx" class="cover-link" target="blank">Clean CSS3 menu</a>
          </section>
          
          <section>
            <iframe id="iframe_embed_1515311" src="https://s.codepen.io/RavingAPD/fullcpgrid/cxopF" data-slug-hash="cxopF" data-title="Simple stylish sidemenu" allowtransparency="true" frameborder="0" scrolling="no" data-src="https://s.codepen.io/RavingAPD/fullcpgrid/cxopF" sandbox="allow-scripts allow-pointer-lock allow-same-origin">
            </iframe><br />
            <a href="https://codepen.io/RavingAPD/pen/cxopF" class="cover-link" target="blank">Lightweight website concept</a>
          </section>
          
          <section>
            <iframe id="iframe_embed_1492343" src="https://s.codepen.io/RavingAPD/fullcpgrid/qAKcl" data-slug-hash="qAKcl" data-title="Multi layer menu" allowtransparency="true" frameborder="0" scrolling="no" data-src="https://s.codepen.io/RavingAPD/fullcpgrid/qAKcl" sandbox="allow-scripts allow-pointer-lock allow-same-origin">
            </iframe><br />
            <a href="https://codepen.io/RavingAPD/pen/qAKcl" class="cover-link" target="blank">Multi layer menu</a>
          </section>
          
          <section>
            <iframe id="iframe_embed_1317479" src="https://s.codepen.io/RavingAPD/fullcpgrid/Homst" data-slug-hash="Homst" data-title="Short expandable user description" allowtransparency="true" frameborder="0" scrolling="no" data-src="https://s.codepen.io/RavingAPD/fullcpgrid/Homst" sandbox="allow-scripts allow-pointer-lock allow-same-origin">
            </iframe><br />
            <a href="https://codepen.io/RavingAPD/pen/Homst" class="cover-link" target="blank">Short expandable user description</a>
          </section>
        </article>
        
        <article id="social">
          <section>
            <a href="https://www.facebook.com/Ravingapd?ref_type=bookmark" target="blank"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTcJnzROEy7KZnowCWjGQgolfnlL15jtMG4YpZe4_zB3yItPM8F" /></a>
            
            <a href="https://plus.google.com/+RaverRavingAPD" target="blank"><img src="http://files.softicons.com/download/android-icons/flat-icons-by-martz90/png/256x256/google+.png" /></a>
            
            <a href="https://twitter.com/Raver13371" target="blank"><img src="http://aweebitirish.com/wp-content/uploads/2014/04/twitter-icon-flat.png" /></a>
            
            <a href="http://raver13371.deviantart.com/" target="blank"><img src="http://files.softicons.com/download/android-icons/flat-icons-by-martz90/png/256x256/deviantart.png" /></a>
          </section>
        </article>
        
        <article>
          <div class="article-header">Inspiration can be the key</div>
          <section>
            Some of my pens may not show some way of doing something smart on the web, but instead give some inspiration to another design or something based on what I made.<br /><br />
            
            Feel free to follow me on any of the social medias of the web and see what else I'm creating!
          </section>
        </article>
      </div>
    </div>
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  width: 100%;
}

#wrapper {
  display: block;
  position: fixed;
  width: 100%;
  height: 100%;
}

#leftWrapper {
  display: inline-block;
  position: absolute;
  left: 0;
  margin: 0;
  padding: 0;
  width: 15em;
  height: 100%;
  
  background-color: #1e1e1e;
}

#listView {
  display: block;
  position: relative;
}

#listView li {
  display: block;
  list-style: none;
}

#listView li a {
  display: block;
  padding: 20px;
  
  color: #fff;
  font-family: sans-serif;
  font-size: 1.1em;
  text-decoration: none;
  
  border-top: 1px solid rgba(0,0,0,0.5);
  border-bottom:1px solid rgba(255,255,255,0.04);
  
  -webkit-transition: all .20s ease;
  -moz-transition: all .20s ease;
  -o-transition: all .20s ease;
  transition: all .20s ease;
}

#rightWrapper {
  display: inline-block;
  position: absolute;
  left: 15em;
  margin: 0;
  padding: 0px 40px;
  width: calc(100% - 15em); 
  height: 100%;
  overflow-y: scroll;
  
  background-color: #efefef;
  
  -webkit-transition: all .20s ease;
  -moz-transition: all .20s ease;
  -o-transition: all .20s ease;
  transition: all .20s ease;
}

#header {
  display: block;
  position: fixed;
  left: 15em;
  width: 100%;
  z-index: 999;
  
  background-color: #efefef;
  border-bottom:2px solid rgba(0,0,0,0.2);
  
  -webkit-transition: all .20s ease;
  -moz-transition: all .20s ease;
  -o-transition: all .20s ease;
  transition: all .20s ease;
}

#fullPage {
  display: inline-block;
  margin-left: 20px;
  padding: 10px;
  
  color: #1e1e1e;
  font-family: sans-serif;
  font-size: 2em;
  font-weight: bold;
  text-decoration: none;
  
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

#contentWrapper {
  display: block;
  position: relative;
  margin-top: 100px;
  width: 100%;
  height: 100%;
}

article {
  margin-bottom: 20px;
  
  color: #1e1e1e;
  font-family: sans-serif;
  font-size: 1em;
  text-decoration: none;
  
  background-color: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

section {
  padding: 10px;
}

.article-header {
  padding: 10px;
  
  color: #fff;
  font-family: sans-serif;
  font-size: 1.5em;
  text-align: left;
  
  background-color: #2DCC70; 
}

#showCase, #showCase section, #showCase section a {
  display: inline-block;
  padding: 10px;
  vertical-align: top;
  
  color: #1e1e1e;
  font-family: sans-serif;
  font-size: 1em;
  text-align: center;
  text-decoration: none;
  
  -webkit-transition: all .20s ease;
  -moz-transition: all .20s ease;
  -o-transition: all .20s ease;
  transition: all .20s ease;
}

#showCase {
  padding: 0;
}

#showCase section a {
  box-shadow: inset 0px -2px #2DCC70;
}

#showCase section a:hover {
  color: #fff;
  box-shadow: inset 0px -50px #2DCC70;
}

#social {
  text-align: center;
}

#social a {
  display: inline-block;
  width: 60px;
  height: 60px;
  box-shadow: inset 0px 0px;
}

#social a:hover {
  box-shadow: inset 0px 0px;
}

#social a img {
  max-width: 100%;
}

//toggle classes
.full-page {
  left: 0 !important;
  width: 100% !important;
}

.list-item-active:after {
  content: "";
  position: absolute;
  margin-top: -65px; 
  margin-left: 13.45em;
  
  width: 0; 
  height: 0; 
  border-top: 33px solid transparent;
  border-bottom: 33px solid transparent;
  border-right: 25px solid #2DCC70;
  
  -webkit-transition: all .20s ease;
  -moz-transition: all .20s ease;
  -o-transition: all .20s ease;
  transition: all .20s ease;
}
              
            
!

JS

              
                $(function() {
  $("#fullPage").click(function() {
    $("#rightWrapper").toggleClass("full-page");
    $("#header").toggleClass("full-page");
  });
})

$(function() {
  $("#listView li").click(function () {
    if ( $("#listView li").hasClass("list-item-active") ) {
      $("#listView li").removeClass("list-item-active");
    }
    $(this).addClass("list-item-active");
  });
});

              
            
!
999px

Console