<div class="paper">
  <div class="part1">
    <h2>Title</h2>
    <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam.</p>
  </div>
  <div class="part2">
    <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est. Lorem ipsum dolor sit amet, consetetur sadipscing elitrsed diam nonumy eirmod tempor invidunt ut labore</p>
  </div>
  <div class="part3">
    <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam. At vero eos et accusam sadipscing elitr <br><span class="pageNumber">6</span></p>
  </div>
</div>
@import "compass/css3";

html, body{height:100%;width:100%;}
*{box-sizing:border-box;}
body{
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAAAuJAAALiQE3ycutAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJh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b5E1mJG4iVAo7BupM3cJU0H8HvTUuau4/BbqkyotUSuO7OxUKkv5TKSoc+zIx6TMobUmgntHYep9PM8/1I8qU3i3hGT9Fnda6BgpkNzmw3HuBZPMyf/yu8ThTymFWwyzle/jQumkQZODXAwjFjg26wMyf2t2YCaeSsPmFqBVHT/xjxyESJlyoa4Dqd6+LxdoUq2xJGlkajUtXDkSF2QD17aLRKPExNxE1pSWP7GcQWvVWHIQrhv5KLB/j/DFuLFLV0mEDDJLp9jxpMO5t9TNmQTS+PGrlsTHzbLAhMOECiZcQ0SzzGVYJMSEZsUCXX7am1WGda+76PnY+J+1sFMGaAH07gWh11ubE5iB1zwJ2rHHUFWMLPxJMf2hN5MQNiEM9glmpc+y9LyxtE5gUiAYPYw9WUTwKSkYDZomjr8HKBJoXI21+2xB4amLc0r/2vQZMYHs9HFMHSe561kYyZHzEhYkWK2S1KaMfdPZGNP/JFR7v8Mfqf69vl83rBhVoK61EsYYRLvW73u8ElOa3P2xMOnXHl2s7OJu1RDOzx5ZCIJZlLRoJQmed0f/nOmT5NmlWTNzbr2icMix5TcwWMRnLmaTfekqb1E/DP2M053cssO9Gn0gY2r2bgwE/uZ2SdOKzUD0sgUI0eapCc9ZNDrqfRzVZKQ3NPts6HSVOqZFPRMRrIG81sOcQazx+MxogOnakcunbpziS+ij3guiq3SFGYcl/msOxZmLVmgML7+C8jYph3lIUHAYMSR4RnBbmVR2+l/sKRUkFWTOWUTc0nYlI6alF+Wpf03ADgK77iGUfbMAAAAAElFTkSuQmCC);
  font-family:TimesNewRoman;  
  position:absolute;
  @include box-shadow(inset black 0px 0px 100px);
}
h2{
  font-size:10px;
  font-weight:bold;
}
p{
  font-size:8px;
  line-height:12px;
  margin:0px;
}
$partHeight:100px;
$verticalPadding:15px;
$horizontalPadding:20px;
$prefixes:"-webkit-" "-moz-" "-ms-" "-o-" "";

.paper{
  height:$partHeight*3;
  width:210px;
  margin:50px auto;

  @each $prefix in $prefixes{
    #{$prefix}perspective:800px;
    #{$prefix}backface-visibility:hidden;
  }

  .part1{
    position:relative;
    z-index:2;
    background-color:white;
    height:$partHeight - $verticalPadding;
    padding:$verticalPadding $horizontalPadding 0px $horizontalPadding;
    @include transition(all .6s linear);
    @include box-shadow(inset rgba(0,0,0,.3) 0px 0px 100px, rgba(0,0,0,.4) 0px -4px 10px);
  }
  .part2{
    background-color:white;
    height:$partHeight;
    padding:0px $horizontalPadding 0px $horizontalPadding;
    @include transition(all .6s linear);
    @include box-shadow(inset rgba(0,0,0,.2) 0px 0px 100px, black 0px 0px 10px);
  }
  .part3{
    background-color:white;
    height:$partHeight - $verticalPadding;
    padding:0px $horizontalPadding $verticalPadding $horizontalPadding;
    @include transition(all .6s linear);
    @include box-shadow(inset rgba(0,0,0,.3) 0px 0px 100px, rgba(0,0,0,.4) 0px 4px 10px);
  }

  &:hover{
    .part1{
      @include transform(rotateX(-30deg) translateY(0.65em) scale(0.98));
      @include transform-origin(50%, 100%);
      @include box-shadow(inset rgba(0,0,0,.5) 0px 0px 100px, rgba(0,0,0,.1) 0px -20px 10px);
    }
    .part2{
      @include transform(rotateX(30deg) scale(1));
      @include transform-origin(50%, 50%);
      @include box-shadow(inset rgba(0,0,0,.4) 0px 80px 100px);
    }
    .part3{
      @include transform(rotateX(-30deg) translateY(-0.45em) scale(1.026));
      @include transform-origin(50%, 0%);
      @include box-shadow(inset rgba(0,0,0,.4) 0px 80px 100px);
    }
  }
}
.pageNumber{
  float:right;
  margin-bottom:100px;
  color:gray;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.