Slide Image

<div class="container">
<!-- Slide Up -->
<div class="image slideUp">
<img alt="Admin" class="rc-avatar" height="150px" src="//lh3.googleusercontent.com/-sr6K_oVYqcc/AAAAAAAAAAI/AAAAAAAAAAA/72hTXaaDxMc/s32-c/photo.jpg" width="150px" />
  <span class="title">Caption</span>
 </div>
<!-- Slide Up Full -->
<div class="image slideUpFull">
<img alt="Admin" class="rc-avatar" height="150px" src="//lh3.googleusercontent.com/-sr6K_oVYqcc/AAAAAAAAAAI/AAAAAAAAAAA/72hTXaaDxMc/s32-c/photo.jpg" width="150px" />
  <span class="title">Caption</span>
 </div>
<!-- Slide Down -->
<div class="image slideDown">
<img alt="Admin" class="rc-avatar" height="150px" src="//lh3.googleusercontent.com/-sr6K_oVYqcc/AAAAAAAAAAI/AAAAAAAAAAA/72hTXaaDxMc/s32-c/photo.jpg" width="150px" />
  <span class="title">Caption</span>
 </div>
<!-- Slide Down Full -->
<div class="image slideDownFull">
<img src="http://cssdeck.com/uploads/media/items/8/8NNM3Tc.png" height="150px" width="150px" />
  <span class="title">Caption</span>
 </div>
<!-- Slide Left -->
<div class="image slideLeft">
<img src="http://cssdeck.com/uploads/media/items/8/8NNM3Tc.png" height="150px" width="150px" />
  <span class="title">Caption</span>
 </div>
<!-- Slide Right -->
<div class="image slideRight">
<img src="http://cssdeck.com/uploads/media/items/8/8NNM3Tc.png" height="150px" width="150px" />
  <span class="title">Caption</span>
 </div>
<!-- Slide Bottom Right -->
<div class="image slideBottomRight">
<img src="http://cssdeck.com/uploads/media/items/8/8NNM3Tc.png" height="150px" width="150px" />
  <span class="title">Caption</span>
 </div>
<!-- Slide Bottom Left -->
<div class="image slideBottomLeft">
<img src="http://lh3.googleusercontent.com/-sr6K_oVYqcc/AAAAAAAAAAI/AAAAAAAAAAA/72hTXaaDxMc/s32-c/photo.jpg" height="150px" width="150px" />
  <span class="title">Caption</span>
 </div>
<!-- Slide Top Right -->
<div class="image slideTopRight">
<img src="http://lh3.googleusercontent.com/-sr6K_oVYqcc/AAAAAAAAAAI/AAAAAAAAAAA/72hTXaaDxMc/s32-c/photo.jpg" height="150px" width="150px" />
  <span class="title">Caption</span>
 </div>
<!-- Slide Top Left -->
<div class="image slideTopLeft">
<img src="http://lh3.googleusercontent.com/-sr6K_oVYqcc/AAAAAAAAAAI/AAAAAAAAAAA/72hTXaaDxMc/s32-c/photo.jpg" height="150px" width="150px" />
  <span class="title">Caption</span>
 </div>
<!-- Reveal Up Half -->
<div class="image revealUpHalf">
<img src="http://cssdeck.com/uploads/media/items/8/8NNM3Tc.png" height="150px" width="150px" />
  <span class="title">Caption <br /><br /> with some more info</span>
 </div>
<!-- Reveal Up Full -->
<div class="image revealUpFull">
<img src="http://cssdeck.com/uploads/media/items/8/8NNM3Tc.png" height="150px" width="150px" />
  <span class="title">Caption <br /><br /> with some more info</span>
 </div>
</div>

<style>

/* CSS slide image */
div.container {margin: 50px auto;width:98%;max-width:675px;}
div.image {position: relative;overflow: hidden;width: 150px;height: 150px;display: inline-block;
    margin-right: 15px;margin-bottom: 15px;
    box-shadow: 0px 0px 5px 3px rgba(0,0,0,0.3);}

img {position: absolute;left: 0;top: 0;
   
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -ms-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;}

span.title {
    width: 150px;
    height: 20px;
    position: absolute;
    background: rgba(30,30,30,0.9);
    text-align: center;
    padding: 5px 0 4px;
    font-size: 14px;
    color: white;
    font-family: &quot;Lucida Sans&quot;, &quot;Trebuchet MS&quot;, Arial, sans-serif;
   
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -ms-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
   
}

/* SLIDE UP */

div.image.slideUp span {
    bottom: -29px;
}

div.image.slideUp:hover img {
    top: -29px;
}

div.image.slideUp:hover span {
    bottom: 0px;
}

/* SLIDE UP FULL */

div.image.slideUpFull span {
    height: 141px;
    bottom: -150px;
}

div.image.slideUpFull:hover img {
    top: -150px;
}

div.image.slideUpFull:hover span {
    bottom: 0px;
}

/* SLIDE DOWN */

div.image.slideDown span {
    top: -29px;
}

div.image.slideDown:hover img {
    top: 29px;
}

div.image.slideDown:hover span {
    top: 0px;
}

/* SLIDE DOWN FULL */

div.image.slideDownFull span {
    height: 141px;
    top: -150px;
}

div.image.slideDownFull:hover img {
    top: 150px;
}

div.image.slideDownFull:hover span {
    top: 0px;
}

/* SLIDE Left */

div.image.slideLeft span {
    height: 141px;
    left: -150px;
}

div.image.slideLeft:hover img {
    left: 150px;
}

div.image.slideLeft:hover span {
    left: 0;
}

/* SLIDE Right */

div.image.slideRight span {
    height: 141px;
    right: -150px;
}

div.image.slideRight:hover img {
    left: -150px;
}

div.image.slideRight:hover span {
    right: 0;
}

/* SLIDE BOTTOM RIGHT */

div.image.slideBottomRight span {
    height: 141px;
    width: 150px;
    bottom: -150px;
    right: -150px;
}

div.image.slideBottomRight:hover img {
    top: 0px;
}

div.image.slideBottomRight:hover span {
    bottom: 0px;
    right: 0px;
}

/* SLIDE TOP RIGHT */

div.image.slideTopRight span {
    height: 141px;
    width: 150px;
    top: -150px;
    right: -150px;
}

div.image.slideTopRight:hover img {
    top: 0px;
}

div.image.slideTopRight:hover span {
    top: 0px;
    right: 0px;
}

/* SLIDE BOTTOM RIGHT */

div.image.slideBottomLeft span {
    height: 141px;
    width: 150px;
    bottom: -150px;
    left: -150px;
}

div.image.slideBottomLeft:hover img {
    top: 0px;
}

div.image.slideBottomLeft:hover span {bottom: 0px; left: 0px;}

/* SLIDE BOTTOM RIGHT */
div.image.slideTopLeft span { height: 141px;width: 150px;top: -150px;left: -150px;}
div.image.slideTopLeft:hover img {top: 0px;}
div.image.slideTopLeft:hover span {top: 0px;left: 0px;}
/* REVEAL UP HALF */
div.image.revealUpHalf span { height: 141px;width: 150px;bottom: -120px;}
div.image.revealUpHalf:hover img {top: -40px;}
div.image.revealUpHalf:hover span {bottom: -80px;}
/* REVEAL UP FULL */
div.image.revealUpFull span { height: 141px;width: 150px;bottom: -120px;}
div.image.revealUpFull:hover img {top: -150px;}
div.image.revealUpFull:hover span {bottom: 0px;}
</style>

Share this

Related Posts

Previous
Next Post »

Countdown

Hai sobat Agussalikur berjumpa kembali ! Kali ini admin berbagi tips seputar blogger dalam topik Time Countdown, kebetulan admin contohkan m...