Contoh karya membuat peta dunia pakai CSS + tooltip - read here Koben mau berbagi artikel bagian sliding effect description on image
Let see mas bro
Ini adalah contoh dari slide description effect yang diterapkan pada sebuah gambar!!! Keren kan coyyy...
Karena bersifat absolute, maka trik ini cocok bagi yang suka memosting gambar tanpa merubah-rubah posisi dan lebar dari gambar tersebut!
KODE CSS.ImageDesc {
position: relative;
}
.ImageDesc img{
position: relative;
z-index: 1;
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}
.ImageDesc div.desc {
position: absolute;
width : ;
bottom: 0;
left: 13px;
padding: 9px;
background: rgba(0, 0, 0, 0.55);
color: white;
font-size: 13px;
-moz-border-radius: 0 0 8px 8px;
-webkit-border-radius: 0 0 8px 8px;
border-radius: 0 0 8px 8px;
-moz-transition: all 0.3s ease 0.3s;
-webkit-transition: all 0.3s ease 0.3s;
-o-transition: all 0.3s ease 0.3s;
-ms-transition: all 0.3s ease 0.3s;
transition: all 0.3s ease 0.3s;
}
.ImageDesc:hover div.desc{
-moz-transform: translate(0, 100%);
-webkit-transform: translate(0, 100%);
-ms-transform: translate(0, 100%);
-o-transform: translate(0, 100%);
transform: translate(0, 100%);
}
MARKUP HTMLposition: relative;
}
.ImageDesc img{
position: relative;
z-index: 1;
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}
.
position: absolute;
bottom: 0;
left: 13px;
padding: 9px;
background: rgba(0, 0, 0, 0.55);
color: white;
font-size: 13px;
-moz-border-radius: 0 0 8px 8px;
-webkit-border-radius: 0 0 8px 8px;
border-radius: 0 0 8px 8px;
-moz-transition: all 0.3s ease 0.3s;
-webkit-transition: all 0.3s ease 0.3s;
-o-transition: all 0.3s ease 0.3s;
-ms-transition: all 0.3s ease 0.3s;
transition: all 0.3s ease 0.3s;
}
.ImageDesc:hover div.desc{
-moz-transform: translate(0, 100%);
-webkit-transform: translate(0, 100%);
-ms-transform: translate(0, 100%);
-o-transform: translate(0, 100%);
transform: translate(0, 100%);
}
<div class="ImageDesc">
<img src="OUT-IMAGE-HERE" alt="" />
<div class="desc">
PENJELASAN DI SINI.
</div>
</div>
Isikan variable Kalau mau mencari
http://beben-koben.blogspot.com/2012/01/trick-hover-and-active-selector-for.html
http://beben-koben.blogspot.com/2012/06/five-css3-hover-effects-by-alessio.html
http://beben-koben.blogspot.com/2012/03/css3-lagi-lagi-lagi-css-3.html
http://tympanus.net/Tutorials/OriginalHoverEffects/
http://www.webdesignlondon-tristar.co.uk/general/jquery-sliding-boxes-captions
Happy hover \m/
trick hoversearch ajah di kotak pencarian ;)
http://beben-koben.blogspot.com/2012/01/trick-hover-and-active-selector-for.html
http://beben-koben.blogspot.com/2012/06/five-css3-hover-effects-by-alessio.html
http://beben-koben.blogspot.com/2012/03/css3-lagi-lagi-lagi-css-3.html
http://tympanus.net/Tutorials/OriginalHoverEffects/
http://www.webdesignlondon-tristar.co.uk/general/jquery-sliding-boxes-captions
Happy hover \m/
Tidak ada komentar:
Posting Komentar