Efek Bumping
.demo-1 {
-webkit-transition:all .5s ease-out;
-moz-transition:all .5s ease-out;
-ms-transition:all .5s ease-out;
-o-transition:all .5s ease-out;
transition:all .5s ease-out;
}
.demo-1:hover {
-webkit-transform:translate(0px,10px);
-moz-transform:translate(0px,-10px);
-ms-transform:translate(0px,-10px);
-o-transform:translate(0px,10px);
transform:translate(0px,-10px);
}
Efek Fade Out
.demo-2 {
-webkit-transition:opacity .5s ease-out;
-moz-transition:opacity .5s ease-out;
-ms-transition:opacity .5s ease-out;
-o-transition:opacity .5s ease-out;
transition:opacity .5s ease-out;
}
.demo-2:hover {
opacity:0.2;
}
Efek Fade In
.demo-3 {
-webkit-transition:opacity .5s ease-out;
-moz-transition:opacity .5s ease-out;
-ms-transition:opacity .5s ease-out;
-o-transition:opacity .5s ease-out;
transition:opacity .5s ease-out;
opacity:0.2;
}
.demo-3:hover {
opacity:1;
}
Efek Rotasi
.demo-4 {
-webkit-transition:all 0.5s ease-out;
-moz-transition:all 0.5s ease-out;
-ms-transition:all 0.5s ease-out;
-o-transition:all 0.5s ease-out;
transition:all 0.5s ease-out;
}
.demo-4:hover {
-webkit-transform:rotate(360deg);
-moz-transform:rotate(360deg);
-ms-transform:rotate(360deg);
-o-transform:rotate(360deg);
transform:rotate(360deg);
}
Efek Membesar
.demo-5 {
-webkit-transition:all 0.5s ease-out;
-moz-transition:all 0.5s ease-out;
-ms-transition:all 0.5s ease-out;
-o-transition:all 0.5s ease-out;
transition:all 0.5s ease-out;
}
.demo-5:hover {
-webkit-transform:scale(2,2);
-moz-transform:scale(2,2);
-ms-transform:scale(2,2);
-o-transform:scale(2,2);
transform:scale(2,2);
}
Efek Skew
.demo-6 {
-webkit-transition:all .5s ease-out;
-moz-transition:all .5s ease-out;
-ms-transition:all .5s ease-out;
-o-transition:all .5s ease-out;
transition:all .5s ease-out;
}
.demo-6:hover {
-webkit-transform:skew(30deg,20deg);
-moz-transform:skew(30deg,20deg);
-ms-transform:skew(30deg,20deg);
-o-transform:skew(30deg,20deg);
transform:skew(30deg,20deg);
}
Labels: CSS, Gambar, Potongan
15 Comments:
cara pasangnya gmn nih?
By Rizky Sopiyandi, at Monday, February 27, 2012 at 1:03:00 PM GMT+7
@Rizqisme_89 Tinggal menyesuaikan classnya saja. Misal mau buat efek fadeIn, salin kode yang ini:
.demo3 {
-webkit-transition:opacity .5s ease-out;
-moz-transition:opacity .5s ease-out;
-ms-transition:opacity .5s ease-out;
-o-transition:opacity .5s ease-out;
transition:opacity .5s ease-out;
opacity:0.2;
}
.demo3:hover {
opacity:1;
}
Lalu taruh di atas ]]></b:skin> atau </style>
Untuk memanggil efeknya jangan lupa tambahkan class="demo3" pada gambar yang ingin diberi efek:
<img src="ganteng.jpg" class="demo3" alt="" />
By Taufik Nurrohman, at Monday, February 27, 2012 at 9:39:00 PM GMT+7
masih ada efek yang lainya ga mas,,, ???
ditunggu ya
By Unknown, at Monday, April 16, 2012 at 2:38:00 PM GMT+7
mas, misalnya aku mau kasih gambar di dalam postingan efek fade in semuanya gimana mas ???
kalo pake kode pemanggil kan cape mas,, misalnya gambarnya ada 100...
berarti harus 100 kali masukin kode pemanggilnya
hadu :(
mohon pencerahannya
By Unknown, at Friday, April 20, 2012 at 3:00:00 PM GMT+7
@trii waluyo Pindah selektornya menggunakan selektor elemen induk. Misalnya, ganti selektor .demo3 menjadi .post img, dengan begitu maka CSS akan mentransisikan semua gambar yang ada di dalam posting:
.post img {
-webkit-transition:opacity .5s ease-out;
-moz-transition:opacity .5s ease-out;
-ms-transition:opacity .5s ease-out;
-o-transition:opacity .5s ease-out;
transition:opacity .5s ease-out;
opacity:0.2;
}
.post img:hover {
opacity:1;
}
By Taufik Nurrohman, at Friday, April 20, 2012 at 4:31:00 PM GMT+7
@Taufik Nurrohman Taruhnya di mana mas ??? Diatas ]]></b:skin ya mas ??? Hehehe :D
By Unknown, at Saturday, April 21, 2012 at 11:16:00 AM GMT+7
@Taufik Nurrohman Oh ya mas,, dah jadi...
Terima kasih... :Q
Mas,,, kalo warna huruf di dalam postingan di ganti bisa ga ??? Q kepengin di hitamin lagi,, suaya hitamnya tebal gitu mas :D
By Unknown, at Saturday, April 21, 2012 at 1:34:00 PM GMT+7
@trii waluyo Setahu Saya sih sudah ada di dalam variabel. Tinggal masuk ke halaman Template Designer lalu edit warnanya sesuka hati.
By Taufik Nurrohman, at Saturday, April 21, 2012 at 2:32:00 PM GMT+7
@Brian Kamikaze Coba pakai cara yang pertama di sebelah atas, yang memakai kelas manual ^:D
By Taufik Nurrohman, at Thursday, June 7, 2012 at 3:32:00 PM GMT+7
ini yang sudah lama ane cari..
makasih ya sobat... :)
By Unknown, at Friday, October 19, 2012 at 4:50:00 PM GMT+7
oiyaa..
biar gambar ga terkesan ditarik gmna ya caranya....??? :(
By Unknown, at Friday, October 19, 2012 at 5:13:00 PM GMT+7
Terima kasih informasinya.. ijin copas ya... :)
By Allyn, at Friday, January 2, 2015 at 6:31:00 AM GMT+7
Mas untuk menambah kecepatan dalam hover, tinggal di ubah aja ya time nya ? misalnya
.demo4 {
-webkit-transition:all 0.5s ease-out;
-moz-transition:all 0.5s ease-out;
-ms-transition:all 0.5s ease-out;
-o-transition:all 0.5s ease-out;
transition:all 0.5s ease-out;
}
menjadi seperti
.demo4 {
-webkit-transition:all 1s ease-out;
-moz-transition:all 1s ease-out;
-ms-transition:all 1s ease-out;
-o-transition:all 1s ease-out;
transition:all 1s ease-out;
}
Salam Blogger :-bd
By Cuman Android, at Tuesday, March 31, 2015 at 11:27:00 PM GMT+7
Yang ini lebih lengkap:
→ /2012/11/teknik-teknik-durasi-css-transisi.html
→ /2011/10/perkenalan-css-transisi.html
By Taufik Nurrohman, at Tuesday, April 7, 2015 at 8:32:00 PM GMT+7
keren nih
Ane pasang buat gambar header ya mas :D
By Ervan, at Sunday, March 13, 2016 at 9:17:00 PM GMT+7
Post a Comment
<< Home