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.

            
              <section id="paper" class="hold_it">
  <a id="trigger" href="#" class="share closed">Open</a>

  <aside class="fold">
    <div class="top">
      <div class="left shdw">
        <a href="https://twitter.com/CodeSpace6" class="scl twtr"></a> </div>
      <div class="right closeLeft">
        <a href="https://www.facebook.com/youssef.ahmani" class="scl fcb"></a></div>
    </div>
    <div class="bottom closeTop">
      <div class="left">
       <a href="https://plus.google.com/114899862063962849607/posts?tab=XX&authuser=0" class="scl gplus"></a></div>
      <div class="right closeLeft">
      <a href="mailto:y.codespace@gmail.com" class="scl mail"></a></div>
    </div>
  </aside>
</section>
            
          
!
            
              * { box-sizing:border-box; }
body {font-family:"Helvetica Neue",Arial,sans-serif;
background:url(https://si0.twimg.com/profile_background_images/662858154/ltwyuzaajfslhb21d08w.png); }
section {margin: 10px auto; }
#paper{ width:160px; height:160px;}

.fold{ position: relative; perspective: 400px;}
.top, .bottom{ height:80px; }
.left, .right{ height:80px; width:80px; float:left; }

.top .left{ background-color: #eee;
background-image: linear-gradient(80deg, rgba(255,255,255,0), rgba(0,0,0,.18) 100%, rgba(255,255,255,1));}

.top .right{background-color: #eee;
  background-image: linear-gradient(130deg, rgba(255,255,255,0), rgba(0,0,0,.17) 100%, rgba(255,255,255,1));

}
.bottom .left{background-color: #eee; background-image: linear-gradient(60deg, rgba(255,255,255,0), rgba(0,0,0,.17) 100%, rgba(255,255,255,1));}

.bottom .right{background-color: #eee;
background-image: linear-gradient(80deg, rgba(255,255,255,0), rgba(0,0,0,.14) 100%, rgba(255,255,255,1));
}

.closeTop{height:80px; 
  transform-origin: top;
  transform: rotateX(178deg) rotateY(1deg);
 transition: transform 2000ms cubic-bezier(0.000, 0.050, 1.000, 0.550);
}

.closeLeft{ height:80px; 
  transform-origin: left;
 transform: rotateX(0deg) rotateY(-178deg);
 transition: transform 1600ms cubic-bezier(1,.01,.8,.96) ;
   transition-delay: 0.8s;
}

.openTop{height:80px; 
  transform-origin: top;
  transform: rotateX(0deg) rotateY(1deg);
 transition: transform 2000ms cubic-bezier(0.000, 0.050, 1.000, 0.550);
   transition-delay: 0.6s;
}

.openLeft{ height:80px; 
  transform-origin: left;
 transform: rotateX(0deg) rotateY(0deg);
 transition: transform 1500ms cubic-bezier(1,.01,.8,.96);  
}

.scl{background: url(http://www.journeyofthemouse.com/img/procurement/social-icons.png); height:30px; width:30px; float:left;
margin:25px;}


.twtr{ background-position: -30px 0;}
.gplus{ background-position: -60px 0;}
.mail{ background-position: -90px 0;}

.shdw {
  box-shadow: 0px 0px 10px 0px #999;
  transition: box-shadow 1500ms cubic-bezier(1,.01,.8,.96); transition-delay: 1.2s;
  }
.share { 
  color: #067da1; text-decoration: none; text-align: center; padding: 20px 20px 20px 20px ;
}
            
          
!
            
              $(function() { 
  $("#trigger").click(function() {
    if($(this).hasClass('closed')){
      $(".bottom ").toggleClass("openTop");
      $(".bottom .right").toggleClass("openLeft");  
      $(".top .right").toggleClass("openLeft");

      $(".bottom ").removeClass("closeTop");
      $(".bottom .right").removeClass("closeLeft");  
      $(".top .right").removeClass("closeLeft");
      $(this).removeClass('closed');
      $(this).text('Close');
      $('.fold').addClass('shdw');
      $('.top .left').removeClass('shdw');
      $('.scl').css('');
    }else{
      $(".bottom ").toggleClass("closeTop");
      $(".bottom .right").toggleClass("closeLeft");  
      $(".top .right").toggleClass("closeLeft");

      $(".bottom ").removeClass("openTop");
      $(".bottom .right").removeClass("openLeft");  
      $(".top .right").removeClass("openLeft"); 
      $(this).addClass('closed');
      $(this).text('Open');
      $('.fold').removeClass('shdw');
      $('.top .left').addClass('shdw');
      $('.scl').css();
    }
  });  
}); 
            
          
!
999px
Loading ..................

Console