Sunday, 22 April 2012

Social Bookmarking Buttons With Spinning Effect for Blogger

Till now many social bookmarking widgets has been released for Blogger. Simply, social bookmarking buttons and icons helps you to make your blog socialize and get more traffic. Adding social bookmarking buttons is cool way to get more readers and targeted audience.

Before using social bookmarking option, you must be aware of icons design how much clickable is it. Your readers are likely to click social bookmarking button containing in your blog if they find the buttons really cool. If you haven't such buttons, so here is something special for you.

Social bookmarking buttons with spinning hover effect. Buttons are cool itself and when your reader hover the mouse over it, it spins a round.
Here is how to add these cool buttons to your Blogger blog:

Login to
Blogger > Design > Edit HTML > Expand widget templates. Find the following code in your template:
<data:post.body/>

Just below that add the following group of codes:
<b:if cond='data:blog.pageType == "item"'>
<div class='spinning_icons'>
<a class='twitter' expr:data-text='data:post.title' expr:data-url='data:post.url' href='http://twitter.com/share' rel='nofollow' target='_blank' title='Twitter'>Twitter</a>
<a class='delicious' expr:href='&quot;http://del.icio.us/post?url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title' target='_blank' title='Delicious'>Delicious</a>
<a class='digg' expr:href='&quot;http://digg.com/submit?phase=2&amp;url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title' target='_blank' title='Digg'>Digg</a>
<a class='facebook' expr:href='&quot;http://www.facebook.com/sharer.php?u=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title' target='_blank' title='Facebook'>Facebook</a>
<a class='stumbleupon' expr:href='&quot;http://www.stumbleupon.com/refer.php?url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title' target='_blank' title='Stumbleupon'>Stumbleupon</a>
<a class='rss' href='http://feeds.feedburner.com/hacktutors' target='_blank' title='RSS'>RSS</a>
</div>
</b:if>


Replace hacktutors with your feedburner username. Again, find the following code:
]]></b:skin>

Just above that code, past the following:

.spinning_icons a{
    width:48px;
    height:48px;
    display:inline-block;
    text-indent:-9999em;
    background-position:0 0;
    background-repeat:no-repeat;
    z-index:2000;
    overflow:hidden;
}
.twitter{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3_rxA9LcHo66DarmN-IV2n2RaWg1VOusT3NnHw0wDLeO-9WxdWxQcCLpkiKl4hq6Qncgqt-nsahdDyIalYX3LjPyKNl10pY1Rt5hfpAvd-mzjJv3NwH9pXQixoWGKobPAGeHHmT3O81Y/s1600/twitter_32.png'); }
.delicious{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSlW_oU5DXsrCVnHhcrNVAT-RV0ysCwfEBVAPY3KjrbIKqqDDpCp_4gMZh9qwmF649oWlPZYtOwLTkXyGML90Hc6eDU-EydnoDhaJbiHV9QkvHtzy-dZHNPNGyEG-akswn9E7Jomt9AoA/s1600/delicious_32.png'); }
.digg{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2KHtRB-JgxxskNqFx_VpHwQ3eos84pEfDwzotsyMM-ei2VP2DgDWvk3UxLwdZ-bMLWz12EvyXUSB7p5OW9gKmPPoRaGDSCgnY2w6GzTDua6kFmPzbI7mTsRQ448HZ8fnE2XNt8nJQuz4/s1600/digg_32.png'); }
.facebook{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCarSCDBPu_dRsjC6AZC1ifs5jG-ygzho6vGtS6L7SWZo8BkLuXM9GzfVBCqb25nLi_dl8AgoPRuqmo0LOFiJo5DyQhr-UJLOgRxyDI0bBBJiJ3QBXNGWFpozxNRVGABpohAu0f4hFj-4/s1600/facebook_32.png'); }
.rss{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnDg_bkLCRAjnqOEo2jk9VLxJQwMA3ZD6qrJGCHTcN8jULhYn4HtnWwT2hMT6yUztJeLyQm0VXXtFd7MxwFxougc__7YR_cbzd4CgZ4KpuxhBO_e8w5VX2WhVqJyJ-iAJ3C2uwxlqZWJ8/s1600/rss_32.png'); }
.stumbleupon{ background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwIne1wIoSf1h_fOznuntlujRMW-CTQ9Nk88s5c_AKr2W1jzA6WJopXnaTtgo6A8Zh6KCd2z73M9Tr_1tw6V3C4D5GAecxkv810-ik0FrT3kENNlfcLCX8igYUmYr3e2g5eYdNRauHd44/s1600/stumbleupon_32.png'); }
.spinning_icons a:hover{
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
    transition: transform 0.2s ease-out;
    -webkit-transition: -webkit-transform 0.2s ease-out;
        -moz-transition: -moz-transform 0.2s ease-out;
}

Now save the template and your are done! Have a look at your cool new bookmarking button that appears at the bottom of your post.

Thanks to Paulund for this cool CSS3 bookmarking button spinning effect.
Enjoy Guys! and don't forget to post your comments.

No comments:

Post a Comment

chitika