Announcement:

BLOGGER HEROE IS UNDER CONSTRUCTION

How To Add Floating Social Bookmark with Easing Effect

Social bookmarking is admittedly helpful for those those who have web site or journal. Due to minimize the use of javascript, I deliberately made ​​it plain widget without the use of a certain effect with the consequences of using images to create widgets that more and more. Well, now i'll provides a tutorial or a way to produce a floating social bookmarking appliance with extra easing result jquery library and after all with the employment of a smaller image.

With the addition of jquery, if you set the indicator on one in every of the social bookmarker icon, it'll pop out slowly, Solo softer sort of a blue blood taking off of the palace, it had been thanks to the result of easing the present on jquery-ui.min . additionally to easing the results that I add the appliance, also because the sort of social media that I place lots a lot of. This appliance is galvanized from Johny Asal Responsive Template Blogger Asal Jadi.
How To Add Floating Social Bookmark with Easing Effect

Live Demo

Add Floating Social Bookmark with Easing Effect To Blogger/Blog

  • Log in to Blogger
  • Go to Template >> Edit HTML (tick expand widget templates )
  • Put the following CSS code above ]]></b:skin>

.social-buttons {
    position: fixed;
    top: 130px;
    width: 45px;
    z-index: 9999;
}
.button-left {
    left: 0;
}
.button-right {
    right: 0;
}
.social-buttons #twitter-btn .social-icon,
.social-buttons #facebook-btn .social-icon,
.social-buttons #google-btn .social-icon,
.social-buttons #rss-btn .social-icon,
.social-buttons #pinterest-btn .social-icon,
.social-buttons #youtube-btn .social-icon {
    background-color: #33353B;
    background-image: url(http://1.bp.blogspot.com/-KOzIiYFlBAk/UUmLwwZSs-I/AAAAAAAAAnA/h6G772N3cpI/s1600/mas-icons.png);
}
.button-left #facebook-btn span {
    background-position: right 10px;
}
.button-left #twitter-btn span {
    background-position: right -35px;
}
.button-left #google-btn span {
    background-position: right -127px;
}
.button-left #rss-btn span {
    background-position: right -80px;
}
.button-left #pinterest-btn span {
    background-position: 11px -177px;
}
.button-left #youtube-btn span {
    background-position: 11px -223px;
}
.button-right #facebook-btn span {
    background-position: 12px 10px;
}
.button-right #twitter-btn span {
    background-position: 11px -35px;
}
.button-right #google-btn span {
    background-position: 10px -127px;
}
.button-right #rss-btn span {
    background-position: 11px -80px;
}
.button-right #pinterest-btn span {
    background-position: 11px -177px;
}
.button-right #youtube-btn span {
    background-position: 11px -223px;
}
.social-buttons #facebook-btn:hover .social-icon {
    background-color: #3B5998;
}
.social-buttons #twitter-btn:hover .social-icon {
    background-color: #62BDB2;
}
.social-buttons #google-btn:hover .social-icon {
    background-color: #DB4A39;
}
.social-buttons #rss-btn:hover .social-icon {
    background-color: #FF8B0F;
}
.social-buttons #pinterest-btn:hover .social-icon {
    background-color: #D43638;
}
.social-buttons #youtube-btn:hover .social-icon {
    background-color: #C4302B;
}
.social-buttons a:hover .social-text {
    display: block;
}
.button-left .social-icon {
    -moz-transition: background-color 0.4s ease-in 0s;
    -webkit-transition: background-color 0.4s ease-in 0s;
    background-repeat: no-repeat;
    display: block;
    float: left;
    height: 43px;
    margin-bottom: 2px;
    width: 43px;
}
.button-left .social-text {
    display: none;
    float: right;
    font-size: 1em;
    font-weight: bold;
    margin: 11px 40px 11px 0px;
    white-space: nowrap;
}
.button-right .social-icon {
    -moz-transition: background-color 0.4s ease-in 0s;
    -webkit-transition: background-color 0.4s ease-in 0s;
    background-repeat: no-repeat;
    display: block;
    float: right;
    height: 43px;
    margin-bottom: 2px;
    width: 43px;
}
.button-right .social-text {
    display: none;
    float: left;
    font-size: 80%;
    font-weight: bold;
    margin: 11px 0 11px 40px;
    white-space: nowrap;
}
.social-buttons .social-text {
    color: #FFFFFF;
}

  • Next adding jquery and javascript, still in Edit HTML put the following code before the </head> :

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js' type='text/javascript'/>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js' type='text/javascript'/>
<script>
    $(window).load(function(){
        $(&#39;.social-buttons .social-icon&#39;).mouseenter(function(){
            $(this).stop();
            $(this).animate({width:&#39;160&#39;}, 500, &#39;easeOutBounce&#39;,function(){});
        });
        $(&#39;.social-buttons .social-icon&#39;).mouseleave(function(){
            $(this).stop();
            $(this).animate({width:&#39;43&#39;}, 500, &#39;easeOutBounce&#39;,function(){});
        });
    });
</script>

For jquery library blue above, if the template you are using is installed, only abandoned.

  • Further calling widget, place the HTML code below before </ body> :

<div class='social-buttons button-right hidden-phone hidden-tablet'>
<a class='itemsocial' href='https://www.facebook.com/YOUR FB' id='facebook-btn' target='_blank'><span class='social-icon'><span class='social-text'>Follow via Facebook</span></span></a>
<a class='itemsocial' href='https://twitter.com/YOUR TWITTER' id='twitter-btn' target='_blank'><span class='social-icon'><span class='social-text'>Follow via Twitter</span></span></a>
<a class='itemsocial' href='https://plus.google.com/YOUR G+' id='google-btn' target='_blank'><span class='social-icon'><span class='social-text'>Follow via Google</span></span></a>
<a class='itemsocial' href='http://pinterest.com/YOUR ID' id='pinterest-btn' target='_blank'><span class='social-icon'>
<span class='social-text'>Follow via Pinterest</span></span></a>
<a class='itemsocial' href='https://www.youtube.com/user/YOUR ID' id='youtube-btn' target='_blank'><span class='social-icon'><span class='social-text'>Follow via Youtube</span></span></a>
<a class='itemsocial' href='http://feeds.feedburner.com/YOUR feed' id='rss-btn' target='_blank'><span class='social-icon'><span class='social-text'>Follow via RSS</span></span></a>
</div>

Change the color blue above, with each ID should not be confused with the neighbor ID.

  • Finally, Save Templates and your done!
  • If you have any doubts don't hesitate to ask.Please Comment.
  • Now If  You Enjoy This Post! Please Take 5 Seconds To Share It.
Share it Please

12 comments:

  1. wow, thank you! I tried it so often and now it finally worked!!! Greetings from Germany

    ReplyDelete
  2. nice one bro, keep rocking !

    Greetings from
    pokharatech.com

    ReplyDelete
  3. @Innocence:

    @Bishnu Subedi:


    ;;;It was my pleasure

    ReplyDelete
  4. It's not actually working. Even in your live demo. Hope you'll fixed it. I'll be back tomorrow.

    ReplyDelete
  5. @Ben Dizonupon checking my live demo Its working fine. What kind of error did you encountered? Please check this blog for another demo:http://innocence89.blogspot.com/
    Let me know if you have any problems again.

    ReplyDelete
  6. @adrian lucernasThanks! I forgot to put the jquery code before the /head tag. Thanks again and more power to your blog! :)

    ReplyDelete
  7. Is there any way to add it on the opposite side?

    ReplyDelete
  8. @H.R. BradfordIf you want this to add on oposite side simply find this code: <div class='social-buttons button-right hidden-phone hidden-tablet'>

    and replace with this code: <div class='social-buttons button-left hidden-phone hidden-tablet'>

    ReplyDelete
  9. Hi, I would like to make it wider? change the width maybe. Since I placed it on the left and when I hover it, it does not show the complete phrase like "Follow on Facebook".

    I would like to widen it to show the whole phrase. Thanks! :) This has been very useful.

    ReplyDelete
  10. @a i m e e
    Add the jquery and javascript code, mabey you didn't add the code.. :)

    ReplyDelete
  11. I have problems with this. At the time of the blue script above put, successful but I did not get a display bloggers other than that. After the blue script above deleted, nothing has changed on my blog. for info, I use dynamic templates blogger.

    ReplyDelete
  12. @Leonsius SompotanMaybe you forgot to add the jquery and javascript code, try to install the code correctly, and let me know if you faced another problem. Happy blogging.. :)

    ReplyDelete

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML code in comments then please use our HTML Encoder
2. For perfect customization of our tutorials, use our HTML Editor
3. Please do not spam, Spam comments will be deleted immediately upon our review.

Regards,
Adrian Lucernas

Copyright @ 2013 BLOGGER HEROE. Designed by BloggerHeroe | Love for Blogger Heroe