TUTORIAL : Flip Card

Advertisement

TUTORIAL : Flip Card


Panda

Panda Cute

Hai Semua!
SELAMAT MENCUBA YA


Cuba korang gerakkan cursor korang kat Panda tu. Code dibawah ni.

<style type="text/css">
.zatiflip-card {
  background-color: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px;
}
.zatiflip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.zatiflip-card:hover .zatiflip-card-inner {
  transform: rotateY(180deg);
}
.zatiflip-card-front, .zatiflip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}
.zatiflip-card-front {
  background-color: #bbb;
  color: black;
}
.zatiflip-card-back {
  background-color: #36384C;
  color: white;
  transform: rotateY(180deg);
}
</style>
<div class="zatiflip-card">
<div class="zatiflip-card-inner">
<div class="zatiflip-card-front">
<img alt="picture" src="URL GAMBAR" style="height: 300px; width: 300px;" />
    </div>
<div class="zatiflip-card-back">
<h1>Panda Cute</h1> 
<p>Hai Semua!</p>
<p>SELAMAT MENCUBA YA</p>
</div>
</div>
</div>

Macam biasa, semua yang Zati bold tu boleh tukar korang punya sendiri okay!

Post a Comment

0 Comments