.curl{
  width: 93px; /* default width of page curl */
  height: 93px; /* default height of page curl */
  position: absolute;
  left: 0;
  top: 0;
	z-index: 1000;
  overflow: hidden;
  background: white;
  box-shadow: 0 0 10px gray;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}

.curl .curlcontent{
  position: absolute;
  left: 15px; /* left position of curl content to show */
  top: 15px; /* top position of curl content to show */
}

.curl:after{ /* the curl itself */
  position: absolute;
  display: block;
  content: '';
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform: rotate(45deg) translateX(70%) scale(1.4);
  background: #afafaf;
  background: -moz-linear-gradient(left,  #afafaf 0%, #ffffff 29%);
  background: -webkit-linear-gradient(left,  #afafaf 0%,#ffffff 29%);
  background: linear-gradient(to right,  #afafaf 0%,#ffffff 29%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#afafaf', endColorstr='#ffffff',GradientType=1 );

}

.curl:hover{
  width: 700px; /* width of page curl when mouse over */
  height: 700px; /* height of page curl when mouse over */
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  box-shadow: 10px 10px 50px gray;

}

/* #### Right corner curl specific CSS (instead of default left corner) ### */

.curl.rightcorner{
  left: auto;
  right: 0;
}

.curl.rightcorner:after{
  left: auto;
  right: 0;
  transform: rotate(135deg) translateX(70%) scale(1.4);  
}

.curl.rightcorner .curlcontent {
  left: auto;
  right: 50px; /* right position of curl content to show */
  top: 50px; /* top position of curl content to show */
}

