4 Popular CSS3 Image captioning method

4 Popular CSS3 Image captioning method
The default image captioning method we usually use is just more like showing the name of images. That captioning method is bit simple and awkward ways of representing caption. So here I am presenting 4 trendy image caption method using CSS3 effects, (not jQuery - JavaScript). These image caption methods will show your image caption on mouse hover with
  • Curtain, Fade in out, Pop under, Slide from left effect. 
  • All effect got maximum support with any web browser,
  • Easily customizable via CSS editing
Let’s see how these effects look like and how to use ‘em on your website project.

Curtain style CSS3 image caption

Curtain style CSS3 image caption

HTML

<!--crawlist.net effect starts-->
<div class="ks-curtain">
<img src="Image link">
<span class="ks-caption the-caption">
<p>Your Text</p>
</span>
</div>
<!--crawlist.net effect ends-->


CSS

/*crawlist.net css starts*/
.ks-curtain {
border: 5px solid #fff;
cursor: pointer;
height: 200px;
float: left;
margin: 5px;
position: relative;
overflow: hidden;
width: 200px;
-webkit-box-shadow: 1px 1px 1px 1px #ccc;
-moz-box-shadow: 1px 1px 1px 1px #ccc;
box-shadow: 1px 1px 1px 1px #ccc;
}
.ks-curtain img {
position: absolute;
left: 0;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
-o-transition: all 300ms ease-out;
-ms-transition: all 300ms ease-out;
transition: all 300ms ease-out;
}
.ks-curtain .ks-caption {
background-color: rgba(0,0,0,0.8);
position: absolute;
color: #fff;
z-index: 100;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
-o-transition: all 300ms ease-out;
-ms-transition: all 300ms ease-out;
transition: all 300ms ease-out;
left: 0;
}
.ks-curtain .the-caption
{
width: 170px;
height: 170px;
top: -200px;
text-align: left;
padding: 15px;
font:Arial;
font-size:15px;
}
.ks-curtain:hover .the-caption
{
-moz-transform: translateY(100%);
-o-transform: translateY(100%);
-webkit-transform: translateY(100%);
transform: translateY(100%);
}
/*crawlist.net css ends*/


Fade in out style  CSS3 image caption

Fade in out style  CSS3 image caption

HTML

<!--crawlist.net effect starts-->
<div class="ks-fade">
<img src="Image Link">
<span class="captiono ocaption">
<p>Your Text</p>
</span>
</div>
<!--crawlist.net effect ends-->


CSS

/*crawlist.net css starts*/
.ks-fade {
border: 5px solid #fff;
cursor: pointer;
height: 200px;
float: left;
margin: 5px;
position: relative;
overflow: hidden;
width: 200px;
-webkit-box-shadow: 1px 1px 1px 1px #ccc;
-moz-box-shadow: 1px 1px 1px 1px #ccc;
box-shadow: 1px 1px 1px 1px #ccc;
}
.ks-fade img {
position: absolute;
left: 0;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
-o-transition: all 300ms ease-out;
-ms-transition: all 300ms ease-out;
transition: all 300ms ease-out;
}
.ks-fade .captiono {
background-color: rgba(0,0,0,0.8);
position: absolute;
color: #fff;
z-index: 100;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
-o-transition: all 300ms ease-out;
-ms-transition: all 300ms ease-out;
transition: all 300ms ease-out;
left: 0;
}
.ks-fade .ocaption
{
opacity: 0;
width: 170px;
height: 170px;
text-align: left;
padding: 15px;
font:Arial;
font-size:15px;
}
.ks-fade:hover .ocaption
{
opacity: 1;
}
/*crawlist.net css ends*/


Pop under style CSS3 image caption

Pop under style CSS3 image caption

HTML


<!--crawlist.net effect starts-->  
<div class="ks-under">
<img src="Image link">
<span class="captio kscaption">
<p>Your Text</p>
</span>
</div>
<!--crawlist.net effect ends-->


CSS

/*crawlist.net css starts*/
.ks-under {
border: 5px solid #fff;
cursor: pointer;
height: 200px;
float: left;
margin: 5px;
position: relative;
overflow: hidden;
width: 200px;
-webkit-box-shadow: 1px 1px 1px 1px #ccc;
-moz-box-shadow: 1px 1px 1px 1px #ccc;
box-shadow: 1px 1px 1px 1px #ccc;
}
.ks-under img {
position: absolute;
left: 0;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
-o-transition: all 300ms ease-out;
-ms-transition: all 300ms ease-out;
transition: all 300ms ease-out;
}
.ks-under .captio {
background-color: rgba(0,0,0,0.8);
position: absolute;
color: #fff;
z-index: 100;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
-o-transition: all 300ms ease-out;
-ms-transition: all 300ms ease-out;
transition: all 300ms ease-out;
left: 0;
}
.ks-under .kscaption
{
height:53px;
width: 200px;
display: block;
bottom: -56px;
text-align: center;
font:Arial;
font-size:15px;
}
.ks-under:hover .kscaption
{
-moz-transform: translateY(-100%);
-o-transform: translateY(-100%);
-webkit-transform: translateY(-100%);
transform: translateY(-100%);
}
/*crawlist.net css ends*/


Slide from left style CSS3 image caption

Slide from left style CSS3 image caption

HTML

<!--crawlist.net effect starts-->   
<div class="ks-lefty">
<img src="Image Link">
<span class="capion aption">
<p>Your Text</p>
</span>
</div>
<!--crawlist.net effect ends-->


CSS

/*crawlist.net css starts*/
.ks-lefty {
border: 5px solid #fff;
cursor: pointer;
height: 200px;
float: left;
margin: 5px;
position: relative;
overflow: hidden;
width: 200px;
-webkit-box-shadow: 1px 1px 1px 1px #ccc;
-moz-box-shadow: 1px 1px 1px 1px #ccc;
box-shadow: 1px 1px 1px 1px #ccc;
}
.ks-lefty img {
position: absolute;
left: 0;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
-o-transition: all 300ms ease-out;
-ms-transition: all 300ms ease-out;
transition: all 300ms ease-out;
}
.ks-lefty .capion {
background-color: rgba(0,0,0,0.8);
position: absolute;
color: #fff;
z-index: 100;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
-o-transition: all 300ms ease-out;
-ms-transition: all 300ms ease-out;
transition: all 300ms ease-out;
left: 0;
}
.ks-lefty .aption
{
width: 170px;
height: 170px;
text-align: left;
padding: 15px;
left: 200px;
font:Arial;
font-size:15px;
}
.ks-lefty:hover .aption
{
background-color: rgba(0,0,0,1)!important;
-moz-transform: translateX(-100%);
-o-transform: translateX(-100%);
-webkit-transform: translateX(-100%);
opacity: 1;
transform: translateX(-100%);
}
/*crawlist.net css ends*/


How to add on your website project 
  • First copy and paste the CSS part on your site’s Stylesheet.css
  • Whether on your website you want to show this image caption’s there copy and paste the HTML part.
How to configure
  • At HTML part’s ‘Image link’ paste your image link, on which image you want to show caption Into <p> and </p> tag write your caption
  • As your image’s height and width delete default code and place your image height and width. And also fix the caption’s height width too if effect does not showing right. 

Compatibility
These effects are optimized for maximum fallback support with major web browser. Any browser with CSS3 Compatibility will show these effect easily.

Any feedback leave with comment, soon I’ll publish more image caption method so stay subscribed.