Thursday, February 21, 2013

Sliding Up Image Description

Sliding Up Image Description
Terinspirasi dari Google Web Store

HTML

<div class="image-box-wrapper" id="image-box-wrapper">

    <!-- `.image-box` start -->
    <div class="image-box">
        <div class="image-container">
            <img src="img/image-1.jpg" alt="" width="200" height="150">
        </div>
        <div class="image-details">
            <div class="details">
                <h4>Description Title</h4>
                <p>Description text...</p>
                <p><a class="more" href="#">More</a></p>
            </div>
        </div>
    </div>
    <!-- `.image-box` end -->
    
    ...
    ...
    ...

    <div class="clear"></div>

</div>

CSS

.image-box-wrapper {
  width:642px;
  margin:50px auto;
}

.image-box {
  width:210px;
  height:160px;
  overflow:hidden;
  background-color:white;
  border:1px solid #ccc;
  float:left;
  margin:1px 1px;
  font:normal normal 12px/1.4 Segoe,"Segoe UI",Arial,Sans-Serif;
  color:#333;
}

.image-container,
.image-details {
  height:150px;
  border:5px solid white;
  background-color:#ffc;
  -webkit-transition:margin-top .4s ease-out .4s;
  -moz-transition:margin-top .4s ease-out .4s;
  -ms-transition:margin-top .4s ease-out .4s;
  -o-transition:margin-top .4s ease-out .4s;
  transition:margin-top .4s ease-out .4s;
}

.image-container img {
  width:200px;
  height:150px;
  padding:0 0;
  margin:0 0;
  border:none;
  outline:none;
  max-width:none;
  max-height:none;
  background-color:black;
}

.image-details h4,
.image-details p {
  margin:0 0 .2em;
  padding:0 0;
  height:70px;
}

.image-details h4 {
  font-size:120%;
  height:auto;
}

.image-details .details {
  padding:10px 12px;
  overflow:hidden;
}

.image-details .more {
  color:white;
  text-decoration:none;
  display:block;
  text-align:center;
  font-weight:bold;
  background-color:#f9a;
  height:26px;
  line-height:26px;
  margin:10px 0 0;
}

.image-box:hover {border-color:#bbb}
.image-box:hover .image-container {margin-top:-160px}
.image-details .more:hover {background-color:black}

Lihat Demo

Labels: , ,

14 Comments:

At Thursday, February 21, 2013 at 5:40:00 PM GMT+7, Blogger MUX SPARROW said...

Keren, Mas! \o/

 
At Friday, February 22, 2013 at 11:39:00 AM GMT+7, Blogger Unknown said...

Mas mau tanya, :yaya: cara membuat header kaya DTE :] bagaimana membuat :] mempunyai efek hover? terimakasih \o/

 
At Friday, February 22, 2013 at 1:18:00 PM GMT+7, Blogger budkalon said...

hmm... pake @keyframe kayaknya, tapi saya gak tahu kodenya :D

 
At Saturday, February 23, 2013 at 4:14:00 PM GMT+7, Blogger tes said...

keren keren :D :\

 
At Friday, March 1, 2013 at 8:36:00 PM GMT+7, Blogger Unknown said...

bisakah kalau ini diterapkan untuk desain posting di homepage?

 
At Tuesday, March 5, 2013 at 3:25:00 PM GMT+7, Blogger hanggarps said...

Bang Tau mau tnaya ini kode html dan cssnya diletakkan dimana yah di edit html saya kurang paham

 
At Tuesday, March 5, 2013 at 9:02:00 PM GMT+7, Blogger Taufik Nurrohman said...

/2012/10/auto-hide-search-form-inside-header.html?showComment=1362491980039#c2434000627795299994

 
At Friday, April 19, 2013 at 12:11:00 AM GMT+7, Blogger Unknown said...

wah mas, jadi mesti di edit satu satu yah mas postingannya? "more" nya di "a href" kan ke postingan yg udah di posting ya?

 
At Saturday, May 4, 2013 at 1:48:00 PM GMT+7, Blogger Unknown said...

gan ni ane mau nnya, gimana cara ya buat pembatas posting di blog...
mohon bantuan ya gan....
:-bd

 
At Sunday, May 5, 2013 at 8:35:00 PM GMT+7, Blogger Unknown said...

This comment has been removed by the author.

 
At Sunday, May 5, 2013 at 9:11:00 PM GMT+7, Blogger Unknown said...

pakai CSS border aja bro di main-wrappernya atau apapun itu..
Pasti bisa kok, itu kan tutor kelas mendasar/pemula :)
Semoga berhasil :D

 
At Sunday, May 5, 2013 at 9:13:00 PM GMT+7, Blogger Unknown said...

bukan mas, kurang lebih Tutor ini hampir sama kok dengan tutor "Posting Auto Readmore Tanpa Java Script" coba aja perhatiin codenya mas pasti bisa kok :)

 
At Monday, May 6, 2013 at 11:26:00 AM GMT+7, Blogger Unknown said...

bukan gan maksud ane tu ...
jumlah posting yang tertampil itu terlalu banyak ,padahal udah ane atur di "posting blog" gue atur jadi 5 ...
jadi intinya kok pengaturannya itu tidak berfungsi ...

contoh: http://predatorevil.blogspot.com/search/label/Trik%20And%20Tips%20Blogger

:) :) :)

 
At Tuesday, May 14, 2013 at 1:19:00 PM GMT+7, Blogger Imron Fhatoni said...

assalamualaikum sebelumnya saya minta izin sama admin...
mas saya mau nanya gimana carabuat navbar kaya DT Web mohon pencerahannya mas....

 

Post a Comment

<< Home