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 class="hover-fold">
  <h2>2 or More Shirt</h2>
  <div class="top">
    <div class="front face"></div>
    <div class="back face">
      <p>I designed this shirt for my friend's band "2 or More". I was really excited to play with the transparencies in the ink. I thought it would be fun, but the screen printer didn't.</p>
    </div>
  </div>
  
  <div class="bottom"></div>
  
</div>
            
          
!
            
              @import "compass/css3";

$yellow: #e8c63d;

body{
  background: #ddd;
}

*{
  box-sizing: border-box;
  color: #333;
}

.hover-fold{
  background: $yellow;
  border: 5px white solid;
  height: 310px;
  margin: 10px auto;
  @include perspective( 1500 );
  position: relative;
  width: 410px;
  h2{
    border-bottom: 1px solid #333;
    margin: 0 40px;
    padding: 110px 0 2px;
  }
  .top{
    height: 50%;
    @include transition(all .5s ease-out);
    @include transform( rotateX(0deg) );
    @include transform-origin( 0, 100% );
    @include transform-style( preserve-3d );
    position: absolute;
    top:0px;
    width: 100%;
    z-index: 10;
    .face{
      @include backface-visibility( hidden );
      position: absolute;
    }
  }
  &:hover .top{
    @include transform( rotateX(-180deg) );
  }
  .front{
    background: url(https://dribbble.s3.amazonaws.com/users/21389/screenshots/963288/2ormore_shirt.png);
    height: 100%; /*has to be 100% of .top */
    width: 100%;
  }
  .back{
    background: $yellow;
    height: 100%; /*has to be 100% of .top */
    padding: 0 40px;
    @include transform( rotateX(180deg) );
    width: 100%;
    p{
      margin: 0;
    }
  }
  .bottom{
    background: url(https://dribbble.s3.amazonaws.com/users/21389/screenshots/963288/2ormore_shirt.png) bottom;
    height: 50%;
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 0;
  }
}
            
          
!
999px
Loading ..................

Console