New Published Post: How To Fix Adsense Not Showing After Redirecting Blogger To Custom Domain
Like Us:
Facebook



How to Add Different Hover Effects to Images in Blogger Post


I have already seen and read many tutorials regarding on how to add hover effects on images uploaded in our post editor pages and all of them have put CSS code in the template editor's page which has a the same effect to all of our images.  But there are some instances that the hover effect that we want to appear will be different in some of our posts. Have a  your mouse hover at the  image  below as an example.

Hover Effects Demo




Steps in Applying this tweak in your Blog
Step 1. Copy and paste the code below in your Blogger Post Editor page
<img onmouseout="this.src='http://4.bp.blogspot.com/-MAEdkbsq2_U/Uf0gT9-1O9I/AAAAAAAABdo/BiJHSbEHA3I/s1600/hover+effect+on+images+from+blockquote+2.png'" onmouseover="this.src='http://1.bp.blogspot.com/-n43EDRFMM3U/Uf0gHbxxpkI/AAAAAAAABdg/Bkt6UMQpU98/s1600/hover+effect+on+images+from+blockquote.png'" src="http://4.bp.blogspot.com/-MAEdkbsq2_U/Uf0gT9-1O9I/AAAAAAAABdo/BiJHSbEHA3I/s1600/hover+effect+on+images+from+blockquote+2.png" />

Customization
  • The red bolded texts is default image (the image when no mouse hover). Replace it with your own.
  • The orange bold  and none bold texts (in italic) is the URL image when mouse  hover on it. Replace it with your own also.

The following next tutorial  will be different since  we will add HTML and  CSS to your template.

Zoom In and Out effect

 HTML code:
<div class="grow pic">
<img alt="hover effect" src="http://1.bp.blogspot.com/-qdOE2iXa6v4/Uf3_XB4AzLI/AAAAAAAABeg/57MyS9mQSqw/s1600/hover+effect+slide+left.png" />
</div>

  CSS code for out effect:
/*ZOOM*/
.grow img {
  height: 300px;
  width: 300px;

  -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}

.grow img:hover {
  width: 400px;
  height: 400px;
}

CSS code for  zoom in effect:
/*ZOOM*/
.grow img {
  height: 300px;
  width: 300px;

  -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}

.grow img:hover {
  width: 150px;
  height: 150px;
}

Going to Leftside Effect

HTML Code:
<div class="leftside pic">
<img alt="hover left side effect" src="http://1.bp.blogspot.com/-qdOE2iXa6v4/Uf3_XB4AzLI/AAAAAAAABeg/57MyS9mQSqw/s1600/hover+effect+slide+left.png" />
</div>

CSS Code:
/*leftside movement*/
.leftside img {
border:20px solid #158aee;
 height: 200px;
  width: 200px;
  margin-left: 0px;
  -webkit-transition: margin 1s ease;
     -moz-transition: margin 1s ease;
       -o-transition: margin 1s ease;
      -ms-transition: margin 1s ease;
          transition: margin 1s ease;
}

.leftside img:hover {
border:20px solid #158aee;
  margin-left: -20px;
}


Going to UP Effect

HTML Code:
<div class="vertpan pic">
<img alt="vertical hover effect" src="http://1.bp.blogspot.com/-H0SVTqiQX9A/Uf-_3xUp7aI/AAAAAAAABew/GE1y6X3oieE/s1600/morph.png" />
</div>

CSS Code:
/*VERTPAN*/
.vertpan img {
border:20px solid #158aee;
height: 200px;
  width: 200px;
  margin-top: 0px;
  -webkit-transition: margin 1s ease;
     -moz-transition: margin 1s ease;
       -o-transition: margin 1s ease;
      -ms-transition: margin 1s ease;
          transition: margin 1s ease;
}

.vertpan img:hover {
border:20px solid #158aee;
  margin-top: -20px;
}


Tilt Effect

HTML Code:
<div class="tilt pic">
<img alt="tilt  hover effect" src="http://1.bp.blogspot.com/-H0SVTqiQX9A/Uf-_3xUp7aI/AAAAAAAABew/GE1y6X3oieE/s1600/morph.png" />
</div>

CSS Code: 
/*TILT*/
.tilt {
 -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}
.tilt img{
border:20px solid #158aee;
}
.tilt :hover {
border:20px solid #158aee;
  -webkit-transform: rotate(-10deg);
     -moz-transform: rotate(-10deg);
       -o-transform: rotate(-10deg);
      -ms-transform: rotate(-10deg);
          transform: rotate(-10deg);
}


Morph Effect

HTML code:
<div class="morph pic">
<img alt="morph hover effect" src="http://1.bp.blogspot.com/-H0SVTqiQX9A/Uf-_3xUp7aI/AAAAAAAABew/GE1y6X3oieE/s1600/morph.png" />
</div>

CSS code:
/*MORPH*/
.morph img {
border:25px solid #158aee;
 -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}

.morph img:hover {
border:25px solid #158aee;
border-radius: 250px;
  -webkit-transform: rotate(360deg);
     -moz-transform: rotate(360deg);
       -o-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
          transform: rotate(360deg);
margin: 0;
padding: 0;
margin-bottom:0px;
overflow:hidden;
}


Focus Effect

HTML code:
<div class="focus pic ">
<img alt="focus hover effect" src="http://1.bp.blogspot.com/-H0SVTqiQX9A/Uf-_3xUp7aI/AAAAAAAABew/GE1y6X3oieE/s1600/morph.png" />
  </div>

CSS code:
/*FOCUS*/
.focus img {
border:25px solid #158aee;
 -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}

.focus img:hover {
border:70px solid #158aee;
border-radius: 250px;
margin: 0;
padding: 0;
margin-bottom:0px;
overflow:hidden;
}


Blur Effect

HTML code:
<div class="blur pic">
<img alt="blur hover effect" src="http://1.bp.blogspot.com/-H0SVTqiQX9A/Uf-_3xUp7aI/AAAAAAAABew/GE1y6X3oieE/s1600/morph.png" />
</div>

CSS code:
/*BLUR*/
.blur img {
border:20px solid #158aee;
  -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}

.blur img:hover {
border:20px solid #158aee;
  -webkit-filter: blur(1px);
}


Brightness Effect

HTML code:
<div class="brightness pic">
<img alt="brightness hover effect" src="http://1.bp.blogspot.com/-H0SVTqiQX9A/Uf-_3xUp7aI/AAAAAAAABew/GE1y6X3oieE/s1600/morph.png" />
</div>

CSS code:
/*BRIGHTNESS*/
.brightness img{
border:20px solid #158aee;
  -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}

.brightness img:hover {
border:20px solid #158aee;
  -webkit-filter: brightness(130%);
}


Opacity Effect

HTML code:
<div class="opacity pic">
<img alt="opacity hover effect" src="http://1.bp.blogspot.com/-H0SVTqiQX9A/Uf-_3xUp7aI/AAAAAAAABew/GE1y6X3oieE/s1600/morph.png" />
</div>
CSS code:
/*OPACITY*/
.opacity {
 -webkit-transition: all 2s ease;
     -moz-transition: all 2s ease;
       -o-transition: all 2s ease;
      -ms-transition: all 2s ease;
          transition: all 2s ease;
}
.opacity img  {
border:20px solid #158aee;
}
.opacity:hover {
  -webkit-filter: opacity(50%);
}


Invert Effect

HTML code:
<div class="invert pic">
<img alt="invert hover effect" src="http://1.bp.blogspot.com/-H0SVTqiQX9A/Uf-_3xUp7aI/AAAAAAAABew/GE1y6X3oieE/s1600/morph.png" />
</div>

CSS code:
/*INVERT*/
.invert img{
border:20px solid #158aee;
  -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}

.invert img:hover {
border:20px solid #158aee;
  -webkit-filter: invert(100%);
}

Sepia Effect

HTML code:
<div class="sepia pic">
<img alt="sepia hover effect" src="http://1.bp.blogspot.com/-H0SVTqiQX9A/Uf-_3xUp7aI/AAAAAAAABew/GE1y6X3oieE/s1600/morph.png" />
</div>

CSS Code:
/*SEPIA*/
.sepia img{
border:20px solid #158aee;
  -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}

.sepia img:hover {
border:20px solid #158aee;
  -webkit-filter: sepia(60%);
}


Contrast Effect

HTML code:
<div class="contrast pic">
<img alt="contrast hover effect" src="http://1.bp.blogspot.com/-H0SVTqiQX9A/Uf-_3xUp7aI/AAAAAAAABew/GE1y6X3oieE/s1600/morph.png" />
</div>

CSS code:
/*CONTRAST*/
.contrast img{
border:20px solid #158aee;
  -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}

.contrast img:hover {
border:20px solid #158aee;
  -webkit-filter: contrast(50%);
}
Customiztion with the above codes:
  • For the HTML code, change the red bold texts with your own URL image. 
  • For the CSS code, change the border styles and size in default (bold black). You can click this link for various  border styles.
  • The orange bold texts are responsible for hover effect of your border (size, styles and color), change it also according to your preferences.
Implementation:
This is for the putting of the CSS code
Step 1. Go to Blogger Dashboard >> Template (back your template for your reference).
Step 2. Click the Edit HTML button
Step 3. In the HTML editor's page, control F or find the the code ]]></b:skin>
Step 4.  And just above ]]></b:skin> , paste the CSS code of your choosen hover effect styles.
Step 5. Save your Template (you are now halfway done).

This is for the adding of the HTML code

Step 6. In your Blogger post editor's page, paste the HTML code above (must match with your chosen CSS code also).
Step 7. Save or update your post and you're done.

 Also Check These Posts:

IF you have some question regarding this post, feel free to leave it at our comment box below..I will do my best to answer it for you pal.
God Bless and Happy Blogging to all Us!
About the Author:
tilt  hover effect
Hello folks! This is Viral Apps, the admin of this blog. No words could described my grateful appreciations to all newbie and professional bloggers around the world and most especially to Almighty God who gave me the wisdom...Read More
Follow him @ Twitter |Facebook


Express yourself!
3 comments : Post Your's Buddies!

Post A Comment!
We love to hear your feedbacks and suggestions. We will try our best to reply to your queries as soon as time allows. Please Keep in mind that all comments are moderated manually by our editors team to minimize spamming, and all the links are nofollow.

Note:
1. To add HTML code in the box, please use our HTML editor generator.
2. Please do not spam. Those type of comments will be deleted upon our review.
3. We should appreciate an individual and suggestive discussion.

Best Regards,

Cerwenlloyd Gefjun
  1. hey can i get the code which you use in your blog it comes and blast and look like rainbow

    ReplyDelete
  2. OMG IT WORKS... I HAVE BEEN LOOKING FOR THIS INFORMATION FOR YEARS....THANK YOU SO MUCH YOU ARE MY HERO

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...