Live Demo:-
Add jQuery Image Zoom Effect To Your Blog
Add The Css And Scripts
Step 1. In your Blogger Dashboard Click Design > Edit HtmlStep 2. Find the following piece of code.
]]></b:skin>
Step 3. Copy And Paste The Following Code Directly Above ]]></b:skin>
#easy_zoom{
width:600px;
height:400px;
border:5px solid #eee;
background:#fff;
color:#333;
position:fixed;
top:35px;
left:50%;
overflow:hidden;
-moz-box-shadow:0 0 10px #555;
-webkit-box-shadow:0 0 10px #555;
box-shadow:0 0 10px #555;
/* vertical and horizontal alignment used for preloader text */
line-height:400px;
text-align:center;
}
Step 4. Now Find the following piece of code in your blog.width:600px;
height:400px;
border:5px solid #eee;
background:#fff;
color:#333;
position:fixed;
top:35px;
left:50%;
overflow:hidden;
-moz-box-shadow:0 0 10px #555;
-webkit-box-shadow:0 0 10px #555;
box-shadow:0 0 10px #555;
/* vertical and horizontal alignment used for preloader text */
line-height:400px;
text-align:center;
}
</head>
Step 5. Copy and paste the following piece of code Directly Above </head>
Important - The code highlighted in blue is the main jQuery script, if you already have jQuery in your template. Then leave the highlighted code.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src='http://blogtipsntricks.googlecode.com/files/easyzoom.js' type='text/javascript'/><script type='text/javascript'>
jQuery(function($){
$('a.zoom').easyZoom();
});
</script>
Adding The Image To Your Posts
When you upload a large image (Don't upload image smaller than 500px) to Blogger it will often be re-sized to fit your posts.The image code you upload will look as below and you simply add class="zoom" as highlighted :
<div class="separator" style="clear: both; text-align: center;">
<a class="zoom" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS_QUSYVIATC-J-LijMpUAiXTaAaNNBF1MeI7XPwgkWrV5ALL90-pam3P3Xkm11MUqpSGVvKWD7b_gpEQGQCL0k4eu99YJWzBIA_tu1CoBjVOsvL9JteS7YJ1mbrU9T5OvIcriypXCBVc/s1600/WideScreen_Prince+of+Persia+The+Two+Thrones+03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="205" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS_QUSYVIATC-J-LijMpUAiXTaAaNNBF1MeI7XPwgkWrV5ALL90-pam3P3Xkm11MUqpSGVvKWD7b_gpEQGQCL0k4eu99YJWzBIA_tu1CoBjVOsvL9JteS7YJ1mbrU9T5OvIcriypXCBVc/s1600/WideScreen_Prince+of+Persia+The+Two+Thrones+03.jpg" width="320" /></a></div>
Now you had added the
image zoom effect to your blog.Feel free to share this post and leave
your thoughts in comments we always want to hear from you.
<a class="zoom" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS_QUSYVIATC-J-LijMpUAiXTaAaNNBF1MeI7XPwgkWrV5ALL90-pam3P3Xkm11MUqpSGVvKWD7b_gpEQGQCL0k4eu99YJWzBIA_tu1CoBjVOsvL9JteS7YJ1mbrU9T5OvIcriypXCBVc/s1600/WideScreen_Prince+of+Persia+The+Two+Thrones+03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="205" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS_QUSYVIATC-J-LijMpUAiXTaAaNNBF1MeI7XPwgkWrV5ALL90-pam3P3Xkm11MUqpSGVvKWD7b_gpEQGQCL0k4eu99YJWzBIA_tu1CoBjVOsvL9JteS7YJ1mbrU9T5OvIcriypXCBVc/s1600/WideScreen_Prince+of+Persia+The+Two+Thrones+03.jpg" width="320" /></a></div>