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 class="full-menu">
  <div class="full-menu--middle">
    <button class="menu-toggle menu-toggle--close"></button>
    
    <ul class="main-nav">
      <li><a href="#">Home</a></li>
      <li><a href="#">About</a></li>
      <li><a href="#">Work</a></li>
      <li><a href="#">Contact</a></li>
    </ul><!-- /.main nav -->
  </div><!-- /.full menu middle -->
</div><!-- /.full menu -->

<div class="content">
  <button class="menu-toggle">Open full-screen navigation here</button>
  
  <h1>Simple full-screen navigation menu</h1>
  <p>This is simple full-screen navigation menu build on HTML, LESS and jQuery. You can use it as a starter full-screen navigation template for your next project. If you want to see compiled version of LESS just click on <i>"View Compiled"</i> button in CSS section. In CSS there are comments that highlight what's important to include. There is a full tutorial on how to use this full-screen navigation menu at slicejack.com/blog, just click on button bellow to read full article.</p>
  <a href="http://slicejack.com/simple-full-screen-navigation-menu/" class="btn btn--transition">Read more on Slicejack.com</a>
</div><!-- /.content -->
              
            
!

CSS

              
                /*
 * Body and Main styles
 * ----------------------
 * Styles under "Body and Main styles"
 * are not important for full-screen
 * navigation and it's functionalities.
 *
 */

@primary-color: #ffd200;
@secondary-color: #00174f;

body{ 
  color: #fff;
  background-color: @secondary-color;  
  font-family: 'Open sans', Helvetica, sans-serif;
  padding: 50px 60px;
}

h1{
  font-size: 45px;
  color: @primary-color;
}

p, a{
  font-size: 17px;
  line-height: 29px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

a{
  color: #3498db;
  text-decoration: none;
}

:focus{
  outline: none;
}

.btn{
  background-color: @primary-color;
  color: @secondary-color;
  display: inline-block;
  text-decoration: none;
  padding: 13px 30px;
  margin: 30px 0 0 0;
  border-radius: 3px;
  font-weight: bold;
  
  &:hover{
    background-color: #fff;
  }
}

.btn--transition{
  -webkit-transition: -webkit-transform .2s; 
  -webkit-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
}

.main-nav{
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  
  li{
    margin: 0 0 30px 0;
    
    a{
      font-size: 60px;
      color: #000;
      font-weight: bold;
      line-height: 80px;
      
      &:hover, &:focus{
        border-bottom: 7px solid #000;
      }
    }
  }
}

/*
 * Full menu
 * ----------
 * Styles in this section are very
 * important and you have to implement
 * them if you want for your
 * navigation to work properly.
 *
 */

.full-menu{
  visibility: hidden;
  display: table;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  background-color: rgba(256, 256, 256, 0.92);
  -webkit-transform: scale(0.85);
  -ms-transform: scale(0.85);
  transform: scale(0.85);
  .full-menu--transition;
}

.full-menu--open{
  visibility: visible;
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.full-menu--transition{
  -webkit-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
}

.full-menu--middle{
  display: table-cell;
  vertical-align: middle;
}

.menu-toggle{
  border: 0;
  color: #fff;
  background-color: transparent;
  
  &:before{
    content: '\f0c9';
    font-family: 'FontAwesome';
    margin: 0 20px 0 0;
  }
}

.menu-toggle--close{
  position: absolute;
  top: 30px;
  right: 30px;
  
  &:before{
    content: '\f00d';
    color: #000;
    font-size: 40px;
    margin: 0;
  }
}
              
            
!

JS

              
                /*
 * Icon
 * --------
 * This code toggle classes for
 * our navigation.
 *
 */

$('.menu-toggle').on('click', function(){
  $('.full-menu').toggleClass('full-menu--open');
})
              
            
!
999px

Console