0

CSS3 Hover Effect




DEMO 2 - Split Hover Background


<style type='text/css'>
.demo2 {
  width: 260px;
  height: 340px;
  background: url(URL-Gambar Anda.jpg) no-repeat center center;
  position: relative;
  margin: 0 auto;
  transition: all .15s ease;
  -moz-transition: all .15s ease;
  -webkit-transition: all .15s ease;
  overflow: hidden;
  border:3px double #fff}

.info p {font:bold 20px/24px Arial, Helvetica, sans-serif}
.info {
  position: absolute;
  z-index: 2;
  width: 260px;
  padding: 10px;
  background: transparent;
  opacity: 0;
  -webkit-transition: all .5s ease;
  -moz-transition: all .5s ease;
  -ms-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 24px;
  font-weight: normal;
  color: #fff;}

.left, .right {
  width: 260px;
  height: 340px;
  background: transparent;
  -webkit-transform: perspective( 600px ) rotateY(0deg) skew(20deg) translateX(-198px);
  -moz-transform: perspective( 600px ) rotateY(0deg) skew(20deg) translateX(-198px);
  -ms-transform: perspective( 600px ) rotateY(0deg) skew(20deg) translateX(-198px);
  -o-transform: perspective( 600px ) rotateY(0deg) skew(20deg) translateX(-198px);
  transform: perspective( 600px ) rotateY(0deg) skew(20deg) translateX(-198px);
  overflow: hidden;
  position: relative;}

.slide-left {
  width: 260px;
  height: 340px;
  background: #31a344;
  position: absolute;
  left: 260px;
  -webkit-transition: all .5s ease;
  -moz-transition: all .5s ease;
  -ms-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;}

.right {
  -webkit-transform: perspective( 600px ) rotateY(0deg) skew(20deg) translateX(61px);
  -moz-transform: perspective( 600px ) rotateY(0deg) skew(20deg) translateX(61px);
  -ms-transform: perspective( 600px ) rotateY(0deg) skew(20deg) translateX(61px);
  -o-transform: perspective( 600px ) rotateY(0deg) skew(20deg) translateX(61px);
  transform: perspective( 600px ) rotateY(0deg) skew(20deg) translateX(61px);
  top:-340px;}

.slide-right {
  width: 260px;
  height: 340px;
  background: #288e38;
  position: absolute;
  left: -260px;
  -webkit-transition: all .6s ease;
  -moz-transition: all .6s ease;
  -ms-transition: all .6s ease;
  -o-transition: all .6s ease;
  transition: all .6s ease;}

.demo2:hover .slide-left {left: 130px;background: #31a344}
.demo2:hover .slide-right {
  left:0;
  background: #31a344;
  -webkit-transition-delay: .2s;
  -moz-transition-delay: .2s;
  -ms-transition-delay: .2s;
  -o-transition-delay: .2s;
  transition-delay: .2s;}

.demo2:hover .info {
  opacity: 1;
  -webkit-transition-delay: .6s;
  -moz-transition-delay: .6s;
  -ms-transition-delay: .6s;
  -o-transition-delay: .6s;
  transition-delay: .6s;}
</style>


<div class="demo2">
   <div class="info">
      <p>..Tulis Sesuatu Disini..</p>
   </div>
         <div class="left">
            <div class="slide-left">
            </div>
         </div>
         <div class="right">
            <div class="slide-right">
            </div>
         </div>
</div>