New Cool Image Hover Slight Zoom With Little Fading Using jQuery For Blogger
Changing Opacity on hover is very old and common now.Here is a new jQuery based image effect.This gives a new life to images just see the demo below:)
Please Download Scripts And Upload in Your Own Server Then use Direct Links to files In Below Code.
Where To Upload These Scripts ?Click Here To Know :)
Installation:
Step 1:
Javascript+CSS
Login your BLOGGER account And click on Layout in the sub menu click then Edit HTML
Now Find ]]></b:skin> Then Replace it with Below Code
Step 2:
HTML
Login your BLOGGER account And click on Layout in the sub menu click PAGE ELEMENT Click Add a GADGET select HTML/JAVA paste below code in it and Click SAVE
Please Comment If you liked this Effect =)
Credits : http://www.queness.com distributed and converted for blogger by Blogger Plug n Play
Please Download Scripts And Upload in Your Own Server Then use Direct Links to files In Below Code.
Where To Upload These Scripts ?Click Here To Know :)
Installation:
Step 1:
Javascript+CSS
Login your BLOGGER account And click on Layout in the sub menu click then Edit HTML
Now Find ]]></b:skin> Then Replace it with Below Code
]]></b:skin>
<script src='http://bloggerplugnplay-files.bravehost.com/jquery-1.3.1.min.js'/>
<script>
$(document).ready(function() {
//move the image in pixel
var move = -15;
//zoom percentage, 1.2 =120%
var zoom = 1.2;
//On mouse over those thumbnail
$('.zitem').hover(function() {
//Set the width and height according to the zoom percentage
width = $('.zitem').width() * zoom;
height = $('.zitem').height() * zoom;
//Move and zoom the image
$(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:200});
//Display the caption
$(this).find('div.caption').stop(false,true).fadeIn(200);
},
function() {
//Reset the image
$(this).find('img').stop(false,true).animate({'width':$('.zitem').width(), 'height':$('.zitem').height(), 'top':'0', 'left':'0'}, {duration:100});
//Hide the caption
$(this).find('div.caption').stop(false,true).fadeOut(200);
});
});
</script>
<style media='screen' type='text/css'>
.zitem {
width:125px;
height:125px;
border:4px solid #222;
margin:5px 5px 5px 0;
/* required to hide the image after resized */
overflow:hidden;
/* for child absolute position */
position:relative;
/* display div in line */
float:left;
}
.zitem .caption {
width:125px;
height:30px;
background:#000;
color:#fff;
font-weight:bold;
/* fix it at the bottom */
position:absolute;
bottom:-1px; /* fix IE issue */
left:0;
/* hide it by default */
display:none;
/* opacity setting */
filter:alpha(opacity=70); /* ie */
-moz-opacity:0.7; /* old mozilla browser like netscape */
-khtml-opacity: 0.7; /* for really really old safari */
opacity: 0.7; /* css standard, currently it works in most modern browsers like firefox, */
}
.zitem .caption a {
text-decoration:none;
color:#fff;
font-size:12px;
/* add spacing and make the whole row clickable*/
padding:5px;
display:block;
}
img {
border:0;
/* allow javascript moves the img position*/
position:absolute;
}
.clear {
clear:both;
}
</style>
Step 2:
HTML
Login your BLOGGER account And click on Layout in the sub menu click PAGE ELEMENT Click Add a GADGET select HTML/JAVA paste below code in it and Click SAVE
<div class="zitem">
<a href="#"><img src="1.jpg" alt="Blogger Play n Play" title="" width="125" height="125"/></a>
<div class="caption">
<a href="">Test 1</a>
</div>
</div>
<div class="zitem">
<a href="#"><img src="2.gif" alt="Test 2" title="" width="125" height="125"/></a>
<div class="caption">
<a href="">Test 2</a>
</div>
</div>
<div class="zitem">
<a href="#"><img src="3.png" alt="Test 3" title="" width="125" height="125"/></a>
<div class="caption">
<a href="">Test 3</a>
</div>
</div>
Please Comment If you liked this Effect =)
Credits : http://www.queness.com distributed and converted for blogger by Blogger Plug n Play
I like It
ReplyDeleteIs it Possible that If I have Such kind of effect
http://bloggerplugnplay.blogspot.com/2009/10/imagethumbnail-zoom-effect-on-mouse.html
and When it is Zommed on ^ effect ....The Nam will be written on particular image.>plz reply
i think abcute it can be done easily.It will be a new widget.Just try it and send me your result .i am waiting here ;)
ReplyDeleteHi ,ips.jolly
ReplyDeleteI think the follow code must be remove...
img {border:0;position:absolute;}
and thank for your good trip :)
Hi....!! thanks for this great info..!! is this ur own creation???
ReplyDeleteI want to ask.. Can I post about this tips on my blog??? I wanted to promote it to my friend in Indonesia lang..! Of course I'll add ur link in my post..! Can I do that? ^^
its really interesting and very helpful to blogger like me...my blog is image based....
ReplyDeletehttp://forward2friends.blogspot.com
Thanks & Regards
Forward to Friends / Forward2Friends / Forward 2 Friends