animated zoom

Animated Zoom With Caption Effect For Pictures On Blogger

OK we all love image effects and we love them even more when they can be achieved using just CSS with no need for Javascripts.This effect not only added a neat slide out caption to your pictures but also the image will darken and zoom behind the caption.Check out the link to the demo below (Just hover over the Spice Up Your Blog screenshot on the demo page) and then I will show you just how easy it is.Make sure to watch the video tutorial at the foot of the post to see the effect being added to the demo.

css3 logo in 3d blue

Add Zoom Caption To Blogger

i In Your (New Design) Blogger Dashboard Click The Drop Down Menu For Your Blog > Click Template from the options > Choose Customize > Advanced > Add Css, as shown in the video below.

ii Copy and Paste the following code into the Css Section then click Apply To Blog.

.titlezoom{display:inline-block;overflow:hidden;position:relative;text-decoration:none}
.titlezoom:before{display:block;background-color:#000;content:"";height:100%;opacity:0;position:absolute;width:100%;z-index:2}
.titlezoom:after{display:block;background-color:rgba(255,255,255,0.8);color:#000;content:attr(title);left:-100%;position:absolute;text-align:center;text-transform:uppercase;top:5%;width:94%;z-index:3;padding:2% 3%}
.titlezoom img{border:none;display:block;z-index:1}
.titlezoom:before,.titlezoom:after,.titlezoom img{-webkit-transition:all 200ms ease;-moz-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease}
.titlezoom:hover img{-webkit-transform:scale(1.2);-moz-transform:scale(1.2);-ms-transform:scale(1.2);-o-transform:scale(1.2);transform:scale(1.2)}
.titlezoom:hover:before{opacity:0.3}
.titlezoom:hover:after{left:0}

Adding The Caption To Images

You now have the code in place for the caption to work now you just have to add two things to the images you want to have the caption.

First you need to add a class then you need to add the caption that will appear on hover.You can see exactly how it’s done in the tutorial video below (Make sure to watch the video so you get them right) but here is a quick run down.

Add the class : When you upload an image to your posts go to HTML mode and add class=”titlezoom” to the image code.

Add The Caption : The caption picks up your title text and uses it.The title text and class must be added in the anchor part of the code.

Video Tutorial

That’s it with credit for the idea going to Basicuse.

Drop Your Comments And Questions Below.

author-paul-crowe

About The Author – Paul Crowe is the owner and main author of Spice Up Your Blog.Paul lives in Ireland, has been blogging since 2006 and writing Spice Up Your Blog since 2009.You can find him in the usual social networks.


What My Robot Recommends:

Animated Zoom With Caption Effect For Pictures On Blogger
Informative
85
Useful
78
Easy To Read
81
Fact
79
Reader Rating0 Votes
0
81