Thursday, 18 July 2013

Sliding Social icons with Hover effect for Blogger


Today I am going to show how you can add cool Sliding Social icons with Hover effect to your Blogger/Blogspot blog. These button have a really cool hover effect.

These buttons are made with CSS without using any JavaScript coding. The code has been optimized to load faster. These buttons are attractive and their hover effect make them awesome. When hovered we can see a sliding effect and change in the buttons image. A live working demo of this widget can be seen just above right hand side of my blog
Once you have seen the demo we can move on with the tutorial for adding this widget to your blogger blog.

Adding the HTML/CSS through Layout

For adding this widget in your blog go to Blog Title → Layout → Add Widget → HTML/JavaScript and paste the below code in the box.


<div class="abt-social-slide">
<ul>
<li><a class="facebook" href="#" target="_blank">Facebook</a></li>
<li><a class="twitter" href="#" target="_blank">Twitter</a></li>
<li><a class="google-p" href="#" target="_blank">Google plus</a></li>
<li><a class="rss" href="#" target="_blank">Rss</a></li>
</ul>
</div>
<style>
.abt-social-slide ul li{list-style:none;border-bottom:none;padding:0}
.abt-social-slide li a{width:59px;height:59px;float:left;text-indent:-99999px;border:solid 1px #222121;border-radius:5px;-webkit-transition:All .3s ease-out;-moz-transition:All .3s ease-out;-o-transition:All .3s ease-out;margin:5px 5px 10px;padding:0}
.abt-social-slide li a.facebook{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK056yDItzPqciPtkueXFHsyOZp95FyplKolngN99w_PZ4PVBDHPVYWIA0DUIJspchCe7mz1g5RI_iqU0zhrg13qnihX-n4L63y_SQcU_sevb8gdp4yuLKlnU4VARrnfOeq_3dKnF4Ug/s1600/facebook.png) no-repeat 0 -88px}
.abt-social-slide li a.facebook:hover{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK056yDItzPqciPtkueXFHsyOZp95FyplKolngN99w_PZ4PVBDHPVYWIA0DUIJspchCe7mz1g5RI_iqU0zhrg13qnihX-n4L63y_SQcU_sevb8gdp4yuLKlnU4VARrnfOeq_3dKnF4Ug/s1600/facebook.png) no-repeat 0 0}
.abt-social-slide li a.twitter{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju77YPz3XrIqWLOMt2RqTZScDP96e43WKbLlzexlq-avlzr5v_Bz7aSpRosTKLamzTY5R56kxoR86_IZt0l2NRa8uSgLyzjTEYTEnRzoimobt6iM1VpftVIkZYrQpZw9ZqwUcIHYVljw/s1600/twitter-1.png) no-repeat 0 -88px}
.abt-social-slide li a.twitter:hover{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju77YPz3XrIqWLOMt2RqTZScDP96e43WKbLlzexlq-avlzr5v_Bz7aSpRosTKLamzTY5R56kxoR86_IZt0l2NRa8uSgLyzjTEYTEnRzoimobt6iM1VpftVIkZYrQpZw9ZqwUcIHYVljw/s1600/twitter-1.png) no-repeat 0 0}
.abt-social-slide li a.google-p{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOnUYrMS3iLYZMzAbC95d68UXLu5y1zwMdPc74qn0Cewj0soU2Zth4Fl_slry1Xa9On4I9Fxp58_qTP_GR_a_ktSgFwe5kvX8rWQHswGL7vJZQOuCXtc47mzPJFKwv89gQujmTVrS3CQ/s1600/google.png) no-repeat 0 -88px}
.abt-social-slide li a.google-p:hover{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOnUYrMS3iLYZMzAbC95d68UXLu5y1zwMdPc74qn0Cewj0soU2Zth4Fl_slry1Xa9On4I9Fxp58_qTP_GR_a_ktSgFwe5kvX8rWQHswGL7vJZQOuCXtc47mzPJFKwv89gQujmTVrS3CQ/s1600/google.png) no-repeat 0 0}
.abt-social-slide li a.rss{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_okLkYsbklQeCeZgxN_nW-GjtzhTcFVjBLy0XVFJTTNeLZkt60uWxx2ozEA0Szz7maLbFISToAlci6b7C_EnCB5XpwV7wfAUIKiPQtcidTChyphenhyphenntKJv6x6KP1CXFXWMq5E_ZZX1-6KWQ/s1600/twitter.png) no-repeat 0 -88px}
.abt-social-slide li a.rss:hover{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_okLkYsbklQeCeZgxN_nW-GjtzhTcFVjBLy0XVFJTTNeLZkt60uWxx2ozEA0Szz7maLbFISToAlci6b7C_EnCB5XpwV7wfAUIKiPQtcidTChyphenhyphenntKJv6x6KP1CXFXWMq5E_ZZX1-6KWQ/s1600/twitter.png) no-repeat 0 0}
</style>

After adding the code change # to your desired URL and save the widget. Finally save the template.

You are done now. Now you and your visitors can see this awesome sliding social icons with Hover effect in your blogger blog.

No comments:

Post a Comment