
Hi Friends! Now you can add Image hover effect to images in blogger very easily.
This trick allows your images to some transparency (Not all Images only specified images). when your mouse over on image it will turn to no transparent will make hover effect.
I am giving three types of image hover effects
- CSS Opacity Effect
- CSS Border Effect
- jQuery Fading Effect
Watch Live Demo here
How to Add Image Hover Effect to Blogger?
CSS opacity Effect
- Login to Blogger Dashboard
- Go to Design And select Edit HTML tab
- And Search
]]></b:skin>tag - Add bellow CSS code just before it
a.thumbopacity img { filter:alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5; -khtml-opacity: 0.5; } a.thumbopacity:hover img { filter:alpha(opacity=100); -moz-opacity: 1.0; opacity: 1.0; -khtml-opacity: 1.0; } - Save your template.
Now turn your Image links to hover effect.
Your Normal code to create link with image like bellow
<a href="/index.html" ><img border="0" src="/2010/07//sample.jpg" /></a>
Define a class of class=”thumbopacity” to your Normal code Then modified code is bellow
<a href="/index.html" class="thumbopacity" ><img border="0" src="/2010/07//sample.jpg" /></a>
CSS Border Effect
- Login to Blogger Dashboard
- Go to Design And select Edit HTML tab
- And Search
]]></b:skin>tag - Add bellow CSS code just before it
.thumbborder img{ border: 2px solid #ccc; } .thumbborder:hover img{ border: 2px solid navy; } .thumbborder:hover{ border-color: red; } - Save your template.
Now turn your Image links to hover effect.
Your Normal code to create link with image like bellow
<a href="/index.html" ><img border="0" src="/2010/07//sample.jpg" /></a>
Define a class of class=”thumbborder” to your Normal code Then modified code is bellow
<a href="/index.html" class="thumbborder" ><img border="0" src="/2010/07//sample.jpg" /></a>
jQuery Fading Effect
- Login to Blogger Dashboard
- Go to Design And select Edit HTML tab
- And Search
]]></b:skin>tag - Add bellow JavaScripts just before it
a.Add jQuery script bellow (Skip this step if you already having jQuery script)
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>b.Add this JavaScript before </head> tag
<script type="text/javascript"> $(document).ready(function() { $(".thumbs img").fadeTo("slow", 0.6); $(".thumbs img").hover(function() { $(this).fadeTo("slow", 1.0); }, function() { $(this).fadeTo("slow", 0.6); }); }); </script> - Save your template.
Now turn your Image links to hover effect.
Your Normal code to create link with image like bellow
<a href="/index.html" ><img border="0" src="/2010/07//sample.jpg" /></a>
Define a class of class=”thumbs” to your Normal code Then modified code is bellow
<a href="/index.html" class="thumbs" ><img border="0" src="/2010/07//sample.jpg" /></a>
Leave your Comments








thanks for that .
this is the best blog i've seen
thaks a lot for your tutorials
hi this is nice coding, but i want to creat borders with semitransparent effect in my blog, do you have any idea about it.
masterwire.blogspot.com
I want to add this effect on my widget called " you may also like this". So how will i embed this code on widget. waiting for your reply. Thanks
http://discoverdreamland.blogspot.com
@Ashish
the thumbnails in Related post widget are in the form of background images
so we can't apply this hover effect
it is possible without changing the html code?.. argh so tired
@Daus
Please provide more details. i will definitely help you.
Hi…can u tell me how to give effect without adding "class" ?
hi!! i have come here only today but many tricks discussed here are really awesome!! thanx
thanks a lot
Thankssssssss Helped A Lot Its Amazing!!
great
Hey Harris Bro, can u plz tell me how to make auto links in image for each posts. my url is www.findhindimovies.blogspot.com
Thak you Harish very much.I succeeded to implement the effect on my blog,but I have one more question for you:How to implement CSS opacity effect for embed videos.Can you help me with that stuff?Thanks in advance.