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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              .container-fluid

  .control
  
    ul.menu
      li 
        a.more(href='#', title='Show me the menu!')
          i.fa.fa-bars
      li 
        a(href='#') 
          i.fa.fa-home  
          |  Hiyaaaah-ome
      li 
        a(href='#') 
          i.fa.fa-inbox 
          |  In-baaaahx
      li 
        a(href='#') 
          i.fa.fa-user 
          |  Uuuu-zer-rah
      li 
        a(href='#') 
          i.fa.fa-external-link-square 
          |  Leee-ink
      li 
        a(href='#') 
          i.fa.fa-question 
          |  Hee-elp-pah

    .content
      h2 Crouching Navigation Hidden Menu
      p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eos quod ipsum excepturi deleniti, distinctio, magni labore aspernatur ducimus, dolorum quaerat dolorem, temporibus enim aliquid corporis quas! Magnam nostrum libero vitae!
      p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eos quod ipsum excepturi deleniti, distinctio, magni labore aspernatur ducimus, dolorum quaerat dolorem, temporibus enim aliquid corporis quas! Magnam nostrum libero vitae!
      p <i class="fa fa-arrow-up"></i> Click the menu icon above to watch the magic happen.
      
    
    
    
            
          
!
            
              @import "compass/css3";


.control {
  
  background: lighten($clr-background, 13);
  margin: 60px auto;
  min-height: 14em;
  padding: 20px;
  position: relative;
  width: 70%;
  
  
}

.menu {
  
  left: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: -31px;
  
  a {
    color: invert($clr-background);
  }
  
  li {
    
    background: lighten($clr-background, 21);
    float: left;
    margin: 0 3px 0 -80px;
    padding: 5px 10px;
    transform: perspective(200px) rotateY(90deg);
    transition: all 250ms ease-out;
    
    &:first-child {
      
      margin-left: 0;
      transform: perspective(0px) rotateY(0deg);
      
    }
    
  }
  
  &.on li {
    
    margin-left: 0;
    transform: perspective(0px) rotateY(0deg);
    
  }
  
}


            
          
!
            
              $('.more').click(function (e) {
  
  $(this).parents('.menu').toggleClass('on');
  e.preventDefault();
  
});


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

Console