Tutorial : Curved Border Picture Hover
Dec 2, 2011 | 0 comments
Assalamualaikum

Sarah CK : ehh, nak tanya boleh? macam mana awak buat gambar tu jadi melengkung kalau cursor dekat pada gambar? ada tuto tak?

1. Dashboard > Template.

2. Search code </style>

3. Paste this above the code :
img {
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-transition: 0.5s;
}

img:hover {
filter: alpha(opacity=50);
opacity: .5;
-webkit-border-top-right-radius:20px;
-webkit-border-top-left-radius:20px;
-webkit-border-bottom-right-radius:20px;
-webkit-border-bottom-left-radius:20px;
-webkit-transition: 0.5s;
}

Biru : Curved picture sebelum hover.
Hijau : Curved picture semasa hover.
Merah : Kelajuan hover.
Bold : Opacity gambar semasa hover.

Labels:


NEW
OLD