1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

HowTo Add Floating Social Media Widget With Mouse Hover Effect

Discussion in 'Blogging' started by vbulden, Jan 28, 2015.

  1. #1
    HowTo Add Floating Social Media Widget With Mouse Hover Effect

    [​IMG]
    Hey Friends! Today I am going to share a Awesome Social Media widget for blogspot platform. In these days social popularity is very and most important thing for a blog because the social media popularity brings tons of traffic and page views to a blog. This widget has a set of five social media properties i.e. Facebook, Twitter, RSS, Google plus and Pinterest. This widget works on some very simple but effective CSS and java-script coding. The widget has sliding effect whenever a visitor will hover on a social profile, it will appear with a slide effect of that profile.


    Where This Widget Will Appear:-
    Before, we get on to our Tutorial let us first learn where this widget will appear in a website. Since, this is a Sleek Widget. Therefore, it is extremely small in size so it wouldn’t take a large space on a website. We have integrated a Slide out Functionality that would produce sparks in the eyes of visitors. It will appear at the Top-left side of the screen.
    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.

    So, let us start with our tutorial. Consider the following steps.
    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>)
      <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(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>
      <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>
      • 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.
    Falow As In



    [​IMG]
     
    vbulden, Jan 28, 2015 IP
  2. yize

    yize Active Member

    Messages:
    107
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #2
    Can you convert this to a wordpress plugin?
     
    yize, Jan 28, 2015 IP