I have shared lot's of tutorials on how to add different effect to images, but now, we will be talking on how to add zoom effect to images on mouse hover.
For a demo of what we are talking about, kindly hover your mouse cursor on the image below and see the awesome effect.
DEMO:
How To Add Zoom Effect To Images
- Go to your blogger dashboard
- Click on Template > Edit HTML > Proceed
- Use ctrl F to find ]]></b:skin> and paste the following code above/before it.
.zoomeffect img{
-webkit-transform:scale(0.8);
-moz-transform:scale(0.8);
-o-transform:scale(0.8);
-webkit-transition-duration: 0.5s;
-moz-transition-duration: 0.5s;
-o-transition-duration: 0.5s;
opacity: 0.7;
margin: 0 10px 5px 0;
}
.zoomeffect img:hover{
-webkit-transform:scale(1.1);
-moz-transform:scale(1.1);
-o-transform:scale(1.1);
opacity: 1;
}
-webkit-transform:scale(0.8);
-moz-transform:scale(0.8);
-o-transform:scale(0.8);
-webkit-transition-duration: 0.5s;
-moz-transition-duration: 0.5s;
-o-transition-duration: 0.5s;
opacity: 0.7;
margin: 0 10px 5px 0;
}
.zoomeffect img:hover{
-webkit-transform:scale(1.1);
-moz-transform:scale(1.1);
-o-transform:scale(1.1);
opacity: 1;
}
- Click on Save template
How To Activate it On Images
Whenever you have uploaded any image in your post editor, simply switch to HTML mode and change the class from what ever it is, to zoomeffect.
Example: Your image class in post editor will be <div class="seperator", now change it to <div class="zoomeffect"
If you are adding it to any other part on your blog, you can use the following code.
<a class="zoomeffect" href="YOUR-IMAGE-URL/" target="_blank">
<img src="http://YOUR-IMAGE-URL" /></a>
Replace YOUR-IMAGE-URL with the link of the image you want to apply the effect to.
That's all!
Subscribe For Free Updates!
*Please confirm the email sent to your inbox after clicking "Sign Up!".
thank uu so much, this is the best hover-on-zoom gadget i found, i have used it in my blog, techytawks.blogspot.com, its awesum thank you. do visit the page
ReplyDeleteYou are welcome Danish, glad that you found it usefull for your blog :)
DeleteHi. I am shifting my blogspot site to wordpress. I have two questions:
Delete1) Do blogger blogs have any preference in Google search results?
2) How to use this zoom effect feature in WordPress.
I hope you would
Hi
ReplyDeleteNice blog
I have used this code copied from here
Friends Check Out
Pak India fashion styles Provides Updates On Fashion In Pakistan & India.
http://pakindiafash.blogspot.com
Thanks for nice post. I found it very easy to use it on my blog SoftwareDon, a gadgets technology blog.
ReplyDeletethank to your code, but how to change the size of images when hover ? thanks
ReplyDeletescale (1.1); represent the image size on hover. Edit the values.
DeleteThis comment has been removed by the author.
ReplyDeleteHow can I use it for all posts images?
ReplyDeleteJust replace .zoomeffect with .post-body from the above code and paste it where it was specified.
DeleteI have two questions
ReplyDelete1. How to remove white page in my blog ?
2. How to zoom menu items on mouse hover or selection ?
I am having dynamic template in my blog
http://ourptc-sites.blogspot.in
Visit this site for read more in bangla http://urojahaj.blogspot.com/
ReplyDeleteComment as
ReplyDeletecanada goose outlet
ReplyDeletegiuseppe zanotti outlet
fitflops sale
ray ban sunglasses outlet
polo ralph lauren outlet
asics shoes
ray ban pas cher
fred perry polo shirts
oakley sunglasses wholesale
polo ralph lauren outlet online
20170528wanglili