Wednesday, July 23, 2014

Sliding Social icons with Hover effect for Blogger



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.

 
Live Demo



<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/AVvXsEgjGIfZUUFepYrrLYepeUHlh5cnIc4Bvp_WwhRZfs_Z8FTAgzJCrbR75Ynl5F_YBxHhoaB293hO4G2vjHcsoMNy8F9O2JaMeexXnDgpxVp3IJgWplmBx5QsXnGPpCYe4ZpqdKnS7cO0Zw/s1600/facebook.png) no-repeat 0 -88px}
.abt-social-slide li a.facebook:hover{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjGIfZUUFepYrrLYepeUHlh5cnIc4Bvp_WwhRZfs_Z8FTAgzJCrbR75Ynl5F_YBxHhoaB293hO4G2vjHcsoMNy8F9O2JaMeexXnDgpxVp3IJgWplmBx5QsXnGPpCYe4ZpqdKnS7cO0Zw/s1600/facebook.png) no-repeat 0 0}
.abt-social-slide li a.twitter{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoJM08OOS7fnQFu3SsdYHtbL7AVUgi1SS8cF_kLo35qsunsU9JbN_LEUlk2QejCzTwV2f4ajqAIeldGkp3KaccDfE8uouNNkxjDiAwYNS5mlIjV9tHMBaLTMH9mLfGKdDgnPUAJSDZHw/s1600/twitter-1.png) no-repeat 0 -88px}
.abt-social-slide li a.twitter:hover{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoJM08OOS7fnQFu3SsdYHtbL7AVUgi1SS8cF_kLo35qsunsU9JbN_LEUlk2QejCzTwV2f4ajqAIeldGkp3KaccDfE8uouNNkxjDiAwYNS5mlIjV9tHMBaLTMH9mLfGKdDgnPUAJSDZHw/s1600/twitter-1.png) no-repeat 0 0}
.abt-social-slide li a.google-p{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTJlH3WOihVYNKQGHaJQl_u_kkZPDht5RAO97zaOxbqJpc6aCNuSG2BzSj0-fQXci3spaDCtIB4hDLYac9grqP4844ISqJJLj_fhyphenhyphenFocwM9TYBuzvv7b9CbnsQUBfPU7waAEEAygRLVw/s1600/google.png) no-repeat 0 -88px}
.abt-social-slide li a.google-p:hover{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTJlH3WOihVYNKQGHaJQl_u_kkZPDht5RAO97zaOxbqJpc6aCNuSG2BzSj0-fQXci3spaDCtIB4hDLYac9grqP4844ISqJJLj_fhyphenhyphenFocwM9TYBuzvv7b9CbnsQUBfPU7waAEEAygRLVw/s1600/google.png) no-repeat 0 0}
.abt-social-slide li a.rss{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmZPDfzf8SAY32iSSmkbt74YKaKdJVPJkxa1a23NtC8Y1B-uPbELKfqlPDRRUA97Yo43fRtB2Gfh4grMfDEqTpeNTRNGh_I_GCFXbVHB411n55r2YwwpKcto5-WZoPKzwvSM_XItXvpQ/s1600/twitter.png) no-repeat 0 -88px}
.abt-social-slide li a.rss:hover{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmZPDfzf8SAY32iSSmkbt74YKaKdJVPJkxa1a23NtC8Y1B-uPbELKfqlPDRRUA97Yo43fRtB2Gfh4grMfDEqTpeNTRNGh_I_GCFXbVHB411n55r2YwwpKcto5-WZoPKzwvSM_XItXvpQ/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.

0 Comments:

Post a Comment