cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div id="wrapper">

      <nav class="fullscreen-nav">

        <ul class="main-menu">
          <li><h1 class="nav-link">WORK</h1></li>
          <li><h1 class="nav-link">BLOG</h1></li>
          <li><h1 class="nav-link">ABOUT</h1></li>
          <li><h1 class="nav-link">CONTACT</h1></li>
        </ul>

      </nav>

      <div id="nav-icon">
        <span></span>
        <span></span>
        <span></span>
      </div>

      <h1>Fullscreen Menu Example</h1>

      <p>Click nav icon in the top left corner to display fullscreen menu!</p>

    </div>
            
          
!
            
              * {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'Courier New', Courier, sans-serif
}

#wrapper > h1 {
  margin: 126px 0px 8px 0px;
}

#nav-icon {
  width: 26px;
  height: 19px;
  margin: 40px 24px;
  position: relative;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#nav-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: black;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-icon span:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(2) {
  top: 8px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(3) {
  top: 16px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon.open span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: -2px;
  left: 0px;
}

#nav-icon.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

#nav-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 16px;
  left: 0px;
}

.fullscreen-nav {
  padding-top: 40px;
  height: 100%;
  width: 100%;
  background: white;
  position: fixed;
  left: 0;
  top: 0;
  text-align: center;
  opacity: 0;
  transition: 0.25s;
}

.fullscreen-nav.open {
  opacity: 1;
}

.main-menu {
  position: absolute;
  width: 100%;
  margin: 0 auto;
  max-width: 300px;
  list-style: none;
  left: 0;
  right: 0;
  top: 20%;
}

.nav-link {
  padding: 20px 0px;
  font-size: 48px;
  border-bottom: 1px solid #95a5a6;
  font-weight: 700;
  -o-transition:.5s;
   -ms-transition:.5s;
   -moz-transition:.5s;
   -webkit-transition:.5s;
   transition:.5s;
}

@media screen and (max-width: 768px) {

  .nav-link {
    font-size: 32px;
  }
}

.nav-link:hover {
  color: #c0392b;
}

            
          
!
            
              $(document).ready(function(){

	$('#nav-icon').click(function(){
		$(this).toggleClass('open');
    $('.fullscreen-nav').toggleClass('open');
	});
});

            
          
!
999px
Loading ..................

Console