So, you can have the title of the image, a description, date taken, credit or anything you like.The code we will use has No Javascript this ensures it will load fast and as i said not slow down your blog.The code is all Css3 (Don't Worry I Will Keep It Simple) so you have a flowing and transparent effect with the caption.There is also a stylish Shadow edge around the image On-Hover.
Screenshot
Use Hover Effect Image Captions On Your Blog
Step 1. In Your Blogger Dashboard Click > Design > Edit Html
Step 2. Find the following piece of code in your blogs Html : (Click Ctrl and F for a search bar to help find the code):
]]></b:skin>
Step 3. Copy And Paste The Following Code Directly Above / Before ]]></b:skin>
<!--Start Image Caption Css-->
#image-hover {
}
#figure {
position:relative;
float:left;
margin:10px;
overflow:hidden;
padding: 1px;
}
#figure:hover {
-moz-box-shadow:0 0 20px rgba(0,0,0,0.75);
-webkit-box-shadow:0 0 20px rgba(0,0,0,0.75);
box-shadow:0 0 20px rgba(0,0,0,0.75);
}
#figure .caption {
position:absolute;
bottom:0;
left:0;
opacity: 0.75;
margin-bottom:-115px;
-webkit-transition: margin-bottom;
-webkit-transition-duration: 400ms;
-webkit-transition-timing-function: ease-out;
-moz-transition-property: margin-bottom;
-moz-transition-duration: 400ms;
-moz-transition-timing-function: ease-out;
-o-transition-property: margin-bottom;
-o-transition-duration: 400ms;
transition: margin-bottom;
transition-duration: 400ms;
transition-timing-function: ease-out;
}
#figure:hover .caption {
margin-bottom:0px;
}
#image-hover .caption {
width:100%;
height:90px;
padding:10px;
background:#111;
color:#fff;
font-family: Arial, Helvetica, sans-serif;
}
#image-hover .caption b {
text-shadow: 0px 2px 0px #000;
}
#image-hover .caption {
color: #ddd;
line-height: 24px;
font-size: 14px;
text-shadow: 0px 2px 0px #000;
}
<!--End Image Caption Css, Info : http://www.createtheblogger.blogspot.com -->
Code Credits - Blogger Bits
That's the Css code to create the effect added to your template, The next step is the image itself.
When you want to use this effect on an image in a post copy the code below, paste it into your post and then add your image URL and text as shown.
<div id="image-hover">
<div id='figure'>
<img src="IMAGE-URL-HERE"/>
<span class='caption'>
<b>Title Here..</b>
Description Here...
</span>
</div>
</div>
Important:
You will need to add your image URL and text as shown Below :
IMAGE-URL-HERE: Replace With The URL Of The image You Want To Use.
Title Here: Replace With An Image Title Or Other Text.
Description Here: Replace With An Image Description Or Other Text.
How To Get Your Image URL
I try to leave no one behind so if your a complete newbie you may ask 'How Do I Get The Image URL ?'.
OK, basically upload your image to blogger as usual, in the HTML view of your post editor your image code will look something like this :
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbGrFpJOuICrAs-25RodUEHuRym2eMuXC5sW_-p0ekKTK4tV67b2yOC2HLcRuQy-AnjMk7zx_wuO6_VHhWb8EOte1UXK246COy_Wo4b28v3BwYikOq8CwStWBcgpzo4p1fhcKnXJt1xybA/s1600/hover-effect-image-caption.jpg" imageanchor="1" style=""><img border="0" height="213" width="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbGrFpJOuICrAs-25RodUEHuRym2eMuXC5sW_-p0ekKTK4tV67b2yOC2HLcRuQy-AnjMk7zx_wuO6_VHhWb8EOte1UXK246COy_Wo4b28v3BwYikOq8CwStWBcgpzo4p1fhcKnXJt1xybA/s320/hover-effect-image-caption.jpg" /></a></div>
The actual image URL is the part in red, if your still having trouble drop a comment.
That another great Blogger Image Tutorial with a very cool effect, make sure to check out more of our Blogger Gadgets.