/*-----CSS3-Animation--------------------------------*/
/*---------------------------------------------------*/
.view {
  width: 120px;
  height: 132px;
  margin: 10px;
  float: left;
  position: relative;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.05);
  background: #333;
  -webkit-perspective: 300px;
  -moz-perspective: 300px;
  -o-perspective: 300px;
  -ms-perspective: 300px;
  perspective: 300px;
}

.view .slice{
  width: 50px;
  height: 100%;
  z-index: 100;
  
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
  
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  -ms-transform-origin: left center;
  transform-origin: left center;
  
  -webkit-transition: -webkit-transform 150ms ease-in-out;
  -moz-transition: -moz-transform 150ms ease-in-out;
  -o-transition: -o-transform 150ms ease-in-out;
  -ms-transition: -ms-transform 150ms ease-in-out;
  transition: transform 150ms ease-in-out;
    
}

.view div.view-back{
  display: block;
  width: 50%;
  height: 100%;
  position: absolute;
  right: 0;
  background: #666;
  z-index: 0;
}

.view-back span {
  display: block;
  float: right;
  padding: 2px 15px 0px;
  width: 100%;
  text-align: right;
  font-size: 16px;
  line-height: 1.4em;
  color: rgba(255,255,255,0.6);
}

.view-back a {
  display: block;
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  position: absolute;
  right: 15px;
  bottom: 15px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
}

.view-back a:hover {
  color: #fff;
  border-color: #fff;
}

.view .s2{
    -webkit-transform: translate3d(20px,0,0);
    -moz-transform: translate3d(20px,0,0);
    -o-transform: translate3d(20px,0,0);
    -ms-transform: translate3d(20px,0,0);
    transform: translate3d(20px,0,0);
}

.view .s3{
  -webkit-transform: translate3d(50px,0,0);
  -moz-transform: translate3d(50px,0,0);
  -o-transform: translate3d(50px,0,0);
  -ms-transform: translate3d(50px,0,0);
  transform: translate3d(50px,0,0);
}
.view .s1 {
    width: 20px;
  background-position: 0px 0px;
}
.view .s2 {
  background-position: -20px 0px;
}
.view .s3 {
  background-position: -70px 0px;
}

.view .overlay {
  width: 50px;
  height: 100%;
  opacity: 0;
  position: absolute;
  -webkit-transition: opacity 150ms ease-in-out;
  -moz-transition: opacity 150ms ease-in-out;
  -o-transition: opacity 150ms ease-in-out;
  -ms-transition: opacity 150ms ease-in-out;
  transition: opacity 150ms ease-in-out;
}

.view:hover .overlay {
  opacity: 1;
}

.view img {
  position: absolute;
  z-index: 0;
  -webkit-transition: left 0.3s ease-in-out;
  -o-transition: left 0.3s ease-in-out;
  -moz-transition: left 0.3s ease-in-out;
  -ms-transition: left 0.3s ease-in-out;
  transition: left 0.3s ease-in-out;
}

.view:hover .s2{
  -webkit-transform: translate3d(19px,0,0) rotate3d(0,1,0,-60deg);
  -moz-transform: translate3d(19px,0,0) rotate3d(0,1,0,-60deg);
  -o-transform: translate3d(19px,0,0) rotate3d(0,1,0,-60deg);
  -ms-transform: translate3d(19px,0,0) rotate3d(0,1,0,-60deg);
  transform: translate3d(19px,0,0) rotate3d(0,1,0,-60deg);
}
.view:hover .s3{
  -webkit-transform: translate3d(49px,0,0) rotate3d(0,1,0,105deg);
  -moz-transform: translate3d(49px,0,0) rotate3d(0,1,0,105deg);
  -o-transform: translate3d(49px,0,0) rotate3d(0,1,0,105deg);
  -ms-transform: translate3d(49px,0,0) rotate3d(0,1,0,105deg);
  transform: translate3d(49px,0,0) rotate3d(0,1,0,105deg);
}

.view .s1 > .overlay {
  background: -moz-linear-gradient(right, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);
  background: -webkit-linear-gradient(right, rgba(0,0,0,0.05) 0%,rgba(0,0,0,0) 100%);
  background: -o-linear-gradient(right, rgba(0,0,0,0.05) 0%,rgba(0,0,0,0) 100%);
  background: -ms-linear-gradient(right, rgba(0,0,0,0.05) 0%,rgba(0,0,0,0) 100%);
  background: linear-gradient(right, rgba(0,0,0,0.05) 0%,rgba(0,0,0,0) 100%);
}

.view .s2 > .overlay {
  background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255, 255, 255, 0.2) 100%);
  background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255, 255, 255, 0.2) 100%);
  background: -o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255, 255, 255, 0.2) 100%);
  background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255, 255, 255, 0.2) 100%);
  background: linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.view .s3 > .overlay {
  background: -moz-linear-gradient(right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
  background: -webkit-linear-gradient(right, rgba(0,0,0,0.8) 0%,rgba(0,0,0,0.2) 100%);
  background: -o-linear-gradient(right, rgba(0,0,0,0.8) 0%,rgba(0,0,0,0.2) 100%);
  background: -ms-linear-gradient(right, rgba(0,0,0,0.8) 0%,rgba(0,0,0,0.2) 100%);
  background: linear-gradient(right, rgba(0,0,0,0.8) 0%,rgba(0,0,0,0.2) 100%);
}