728x90 AdSpace

Latest News

11 Oktober 2013

Gambar dengan flip effect

Gerakkan mouse ke salah satu gambar dibawah








Cara pemasangan

1.Login ke akaun blogger anda.
2.Klik Template --> Edit HTML.
3.Cari kod ]]></b:skin>
4.Copy dan paste kod dibawah diatas kode ]]></b:skin> tersebut

div.flip{
position:relative;
width: 300px;
height: 250px;
-webkit-perspective: 600px;
-moz-perspective: 600px;
-o-perspective: 600px;
perspective: 600px;
}
div.flip div.rotate{
width: 100%;
height: 100%;
-moz-transform-style: preserve-3d;
-webkit-transform-style: preserve-3d;
-o-transform-style: preserve-3d;
transform-style: preserve-3d;
-moz-transition: all 0.6s ease-in-out 0.3s;
-webkit-transition: all 0.6s ease-in-out 0.3s;
-o-transition: all 0.6s ease-in-out 0.3s;
transition: all 0.6s ease-in-out 0.3s;
}
div.flip div.rotate > *{
position:absolute;
width: 100%;
height: 100%;
-moz-backface-visibility: hidden;
-webkit-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
}
div.flip div.rotate > div{
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 8px;
background: #eee;
}
div.rotate.x *:nth-child(2){
-moz-transform: rotateX(180deg);
-webkit-transform: rotateX(180deg);
-o-transform: rotateX(180deg);
transform: rotateX(180deg);
}
div.flip:hover > div.rotate.x{
-moz-transform: rotateX(180deg);
-webkit-transform: rotateX(180deg);
-o-transform: rotateX(180deg);
transform: rotateX(180deg);
}
div.rotate.y *:nth-child(2){
-moz-transform: rotateY(180deg);
-webkit-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
}
div.flip:hover > div.rotate.y{
-moz-transform: rotateY(180deg);
-webkit-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
}

Untuk mengaktifkan gambar yang mempunyai efek flip,korang perlu guna kod ini

<div class="flip" style="width: 540px; height: 300px; display: inline-block;">
<div class="rotate x">
<img src="http://urlgambarkorang.jpg">
<img src="http://urlgambarkorang.jpg">
</div>
</div>
</br></br>
<div class="flip" style="width: 540px; height: 300px; display: inline-block;">
<div class="rotate y">
<img src="http://urlgambarkorang.jpg">
<img src="http://urlgambarkorang.jpg">
</div>
</div>



Gambar dengan flip effect
  • Blogger Comments
  • Facebook Comments

0 ulasan:

Catat Ulasan

Top