December 8, 2013

Tutorial :Image Hover #1 ( Grey Colour )


Image hover nie bile kita halakan cursor dye akan bertukar jadi warna grey/kelabu :) Kalau berminat jom buat.


 Dashboard -> Tamplate -> Edit Tamplate HTML

 Tekan ctrl + f serentak dan cari kod </style>

 Copy kod kat bawah nie dan pastekan kat ATAS kod </style> tadi :D

/*------ IMAGE ANIMATION------*/
img, a img {
filter: none;
-webkit-filter: grayscale(0);}
.photo img {
opacity:1;
-webkit-transition:all 0.4s ease-in-out;
-moz-transition:all 0.4s ease-in-out;
-o-transition:all 0.4s ease-in-out;
transition:all 0.4s ease-in-out;}
img:hover, a:hover img {
filter: url(filters.svg#grayscale); /* Firefox 3.5+ */
filter: gray; /* IE6-9 */
-webkit-filter: grayscale(1); /* Google Chrome & Safari 6+ */
-webkit-transition:all 0.4s ease-in-out;
-moz-transition:all 0.4s ease-in-out;
-o-transition:all 0.4s ease-in-out;
transition:all 0.4s ease-in-out;}

 Preview dulu barulah SAVE

 Selamat Mencuba :)

No comments:

Post a Comment

Leave a comment and I will reply you guys back.