Also Read: Flat Social Share Button for Blogger
Marking Up Nicer Icons
- Google plus
Now lets start this tutorial. Before starting this tutorial take a backup of your template.
Now Go to Blogger Dashboard > Template > Edit HTML and past the below CSS Code before </style>
.icon {
display: inline-block;
vertical-align: top;
overflow: hidden;
margin: 4px;
width: 92px;
height: 96px;
font-size: 0;
text-indent: -9999px;
background-color: #404040;
}
.icon-border {
position: relative;
}
.icon-border::before,
.icon-border::after {
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
content: "";
}
.icon-border::before {
z-index: 1;
-webkit-transition: box-shadow 0.3s;
transition: box-shadow 0.3s;
}
.icon-border::after {
z-index: 2;
background: url("http://i.imgur.com/gOZiqfy.png");
background-image: url("http://callmenick.com/_development/icons-css3-transitions/img/icons4.svg"), none;
}
/* facebook */
.icon-border.facebook::before {
box-shadow: inset 0 0 0 48px #3b5998;
}
.icon-border.facebook:hover::before {
box-shadow: inset 0 0 0 4px #3b5998;
}
.icon-border.facebook::after {
background-position: 0 0;
}
/* twitter */
.icon-border.twitter::before {
box-shadow: inset 0 0 0 48px #4099ff;
}
.icon-border.twitter:hover::before {
box-shadow: inset 0 0 0 4px #4099ff;
}
.icon-border.twitter::after {
background-position: -96px 0;
}
/* google plus */
.icon-border.googleplus::before {
box-shadow: inset 0 0 0 48px #d34836;
}
.icon-border.googleplus:hover::before {
box-shadow: inset 0 0 0 4px #d34836;
}
.icon-border.googleplus::after {
background-position: -192px 0;
}
Now Save Template.
After that, Go to Layout> Add a gadget > HTML/Javascript past below code and edit all # tag with your social links.
<a href="#" class="icon icon-border facebook">facebook</a>
<a href="#" class="icon icon-border twitter">twitter</a>
<a href="#" class="icon icon-border googleplus">google+</a>
Reference: http://callmenick.com/post/nicer-icon-hover-effects-with-css3-transitions