How to Make Floating Social Shares





Baca Juga

Availability of information about the author of a blog should be the primary concern of a blogger, because of the lack of information about the author of the blog, the blog will be managed by a professional look and can also make our reputation in the internet world increasingly uphill. Floating social media will emerge as we get closer to the mouse direction. In addition to giving information about the author, this widget also makes the blog look nicer and make the blog more and more recognized by people.

floating social shares

In this post, I will share how to make a cool floating social media in the blog, so we will look the better blog. The steps are very simple, add the widget HTML / Java Script in blog layout, then copy the following script into it and then click save. Here's the script:

<style type="text/css">
ul#social {
    position: fixed;
    margin: 0px;
    padding: 0px;
    top: 20%;
    left: 0px;
    list-style: none;
    z-index:9999;
}
ul#social li {
    width: 100px;
}
ul#social li a {
    display: block;
    margin-left: -2px;
    width: 100px;
    height: 70px;   
    background-color:#fff;
    background-repeat:no-repeat;
    background-position:center center;
    border:1px solid #AFAFAF;
    -moz-border-radius:0px 10px 10px 0px;
    -webkit-border-bottom-right-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    -khtml-border-bottom-right-radius: 10px;
    -khtml-border-top-right-radius: 10px;
    -moz-box-shadow: 0px 4px 3px #000;
    -webkit-box-shadow: 0px 4px 3px #000;
}
ul#social .twitter a{
     background:#0F96C6 url(http://3.bp.blogspot.com/-1wb-O4GG6DQ/UPFOe03M-lI/AAAAAAAAA4g/1015-y7FaYU/s1600/Twitter.png)no-repeat;
background-position:center center;
}
ul#social .googleplus a      {
    background:#D73D27 url(http://3.bp.blogspot.com/-1mYMKQENXdI/UPFOeK31VzI/AAAAAAAAA4k/w2Qk48tpleQ/s1600/GOOGLE+PLus.png)no-repeat;
background-position:center center;
}
ul#social .facebook a      {
    background:#1A4B97 url(http://1.bp.blogspot.com/-3M1F3Y29Yoc/UPFOeAAUFvI/AAAAAAAAA4c/ALvfOPDwJ-g/s1600/Facebook.png)no-repeat;
background-position:center center;
}
ul#social .rss a      {
    background:#FAAE17 url(http://4.bp.blogspot.com/-twR0g7wotpE/UPFOfFtFOuI/AAAAAAAAA4o/uJMUf9hjRco/s1600/rss.png)no-repeat;
background-position:center center;
}

ul#social .pinterest a   {
    background:#963336 url(http://2.bp.blogspot.com/-xgOrG4ysqyM/UPFOeKFKMtI/AAAAAAAAA4Y/i_jnKpHsK24/s1600/Pinterest.png)no-repeat;
background-position:center center;
}
</style>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

<script type="text/javascript">
$(function () {
    $('#social a').stop().animate({
        'marginLeft': '-85px'
    }, 1000);

    $('#social > li').hover(
        function () {
            $('a', $(this)).stop().animate({
                'marginLeft': '-2px'
            }, 200);
        },
        function () {
            $('a', $(this)).stop().animate({
                'marginLeft': '-85px'
            }, 200);
        }
    );
});
</script>
<br />
<ul id="social">
<li class="twitter"><a href="#" title="Twitter"></a></li>
<li class="googleplus"><a href="#" title="Google Plus"></a></li>
<li class="facebook"><a href="#" title="Facebook"></a></li>
<li class="rss"><a href="#" title="Rss"></a></li>
<li class="pinterest"><a href="#" title="Pinterest"></a></li>
</ul>


Oke, after you know the script, let me help you to integrated in your blog's widget. Here the steps:

  1. Sign in Blogger.com
  2. Fill the pasword
  3. Click Lay Out
  4. Click Add Widget
  5. Choose HTML/Java Script
  6. Save
That's all my explanation about how to make this widget. It is easy, isn't it? Hopefully this widget is useful for us. Thanks

Subscribe to receive free email updates:

0 Response to "How to Make Floating Social Shares"

Post a Comment

Peraturan Dalam Berkomentar:
1. Komentar harus relevan dengan konten blog
2. Harus menggunakan bahasa yang sopan
3. Tidak boleh menyinggung SARA or Bullying.
4. Hindari komentar SPAM. Exp: Nice gan, Makasih Gan, dll
5. Tidak ada link di dalam isi komentar. Aktif maupun tidak.

Gunakanlah Sarana Publik ini dengan Bijak. Baca dan Pahami isinya baru Berkomentar. Terimakasih.