Floating Social Media Widget With Mouse Hover Effect

How To Add This Widget To Your Blogger Blog:

The steps mentioned below are extremely simple. We have tried our best to minimize the steps.

Following steps to get this widget:
1. Go to Layout >> Add A Gadget, then choose HTML/JavaScript
2. Paste this code inside it.

If your blog already have a jQuery Plugin then remove the highlighted code.
(<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>)
  1. <style type="text/css">
    ul#social {
        position: fixed;
        margin: 0px;
        padding: 0px;
        top: 10px;
        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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoKxHHhCIjOSHeBN3Jstnzojk9pop2qBobZeCHFnpthhjyFqklBCPsl-4joCb6-846zpNdPr9ihXj-vhWWg8jtS6CwmekCcV3VV0dwPe48YJjPOozJ3lv5yKgu7WLog7yOQqpPGGruDEE/s1600/Twitter.png)no-repeat;
    background-position:center center;
    }
    ul#social .googleplus a      {
        background:#D73D27 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFrs_2azvPzBYcmPce6V10QXMJ4PBleJ4wHTwVu3mc97pMXyv4brYAxg75IUaCRkRv8wuHiuZOTqRK0VVqebXeUmcILHR7HpiYObmHF6hamZmKWRuAoTbq-AIXFeGaUpcHl_VMIFYcIB8/s1600/GOOGLE+PLus.png)no-repeat;
    background-position:center center;
    }
    ul#social .facebook a      {
        background:#1A4B97 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI732e1ghhvGQTSrZWRTbWViiSRw7vUSIKHn0kJQkLrN_X0xceG06L2gx__KX1H5ocQ73XezUK7Ej_HhyphenhyphenaGT9UFQYHELRiDyLSAF-_mw3bKmkx76Ud8ViB1VqRRIL3GMEQ5ev2jddsMVs/s1600/Facebook.png)no-repeat;
    background-position:center center;
    }
    ul#social .rss a      {
        background:#FAAE17 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxrKMPrVPWtu6-yhOGoS0TibQshPZoGpEVrAr6MQfD-Eomh9J92woSOQvsDE6wA5CdTyG5Saj3m0FGtlg3j72Qhqm9W6q_jnZcmV4aj8R53MzAQnLeHR6YtpW16eXy1-h7HcX19h23hwI/s1600/rss.png)no-repeat;
    background-position:center center;
    }
    
    ul#social .pinterest a   {
        background:#963336 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuR17PFOo2BP_k8mpogv9e1UY1kfbYPLkG6UrNTKnZSWH-0knjDua62-7X2At3wUJa1oSLKG9z0agpp6Rneyy3fj2Hz-fGO0Oqz1yxdvIJ26hK52a66xNLH1aV1WShGtj4_RWpDdZBvis/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>
    <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>

  2. After Adding the above code Replace # with your Profile link 
    3. Now save the widget and See your blog. :D

    If you Liked it! then Feel Free to Share this widget. Kindly let me know your views About this Widget in the comment box below.

0 comments:

Post a Comment