Friday, April 15, 2011

Tutorial: Image Hover Melengkung

Sekarang ni aku nak buat tuto image hover melengkung . Tau tak ? Bila cursor korang sentuh gambar , automatik bucu gambar tu akan melengkung . Kalau still blur tengok example kat bawah . Nak buat ? Jom !


1 Dashboard > Design > Edit HTML > Tick Expand Widget Template

2 Search code ni
/* header
3 Kemudian , copy code and pastekan kat bawah code korang cari tadi
/*------ IMAGE ANIMATION------*/
img {filter:alpha(opacity=100); -webkit-transition-duration:.5s;} img:hover {filter: alpha(opacity=60); opacity: .6; -webkit-box-shadow: 0px 0px 20px#F535AA; -moz-box-shadow: 0px 0px 20px #F535AA; -webkit-border-top-right-radius:30; -webkit-border-top-left-radius:30; -webkit-border-bottom-right-radius:30; -webkit-border-bottom-left-radius:30;}img:hover {filter: alpha(opacity=60); opacity: .60; border: 1px solid#F535AA; border-radius: 50px; -moz-border-radius: 50px;} -moz-opacity:1.0; opacity:1.0; } img:hover { filter:alpha(opacity=80); -moz-opacity:0.80; opacity:.80; } u { text-decoration:underline; border-bottom: 2px dotted #F535AA;padding: 0px; }
4 Preview dahulu kemudian baru save template

Nota Bit-bot :
ABC : warna melengkung image tersebut

No comments: