Floating Social Media Widget With Mouse Hover Effect

Live Demo:-
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.
- Go to
Layout>>Add A Gadget, then chooseHTML/JavaScript - 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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1eByMsvtv3oLc2N7MirqN_b7M4c95yM-Q4KTNct4YQUmIrZBfemXFwKIrtcMHf07XRYVBoRaoZmlEIGI0RyGCcOMFJ9gqvxuZyp-yZoW-FXVEuRZH9ha56HnJALpvM7w7EjV2eFucwd4/s1600/Twitter.png)no-repeat; background-position:center center; } ul#social .googleplus a { background:#D73D27 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6TQp1z-v73l1Qdk2MXaLwThuSVuiCX3I7rzHn6-QziP6n8Br33kjLK80OEDY3CBSbbrJDhJvqHm3fH8lKgGHmiYncksRFEMHCLphp8SlxNlTmUwoGrDaTqzu04PoQEPNTGzH986w6vzc/s1600/GOOGLE+PLus.png)no-repeat; background-position:center center; } ul#social .facebook a { background:#1A4B97 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Tif1DivU1FlQebQlOa4K5Ah8Io1BKZZeUxPhm8E24_rAyPRkzf3zX8Z07SiT9ikqRJNgMZMisZL1-f8T2KP0DR3XykhrXdoH0j3OdDTiWKJ-WVekBlx4hBVb555JKmhQrgcoB2A0yvQ/s1600/Facebook.png)no-repeat; background-position:center center; } ul#social .rss a { background:#FAAE17 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMJw6jWmHF4aAbyiU_dqUDM41JcOzlCDPXqJjDXsstL0Qqm-RHTh7W7YSlUFP47HVUweJAp9AWX6DNiz9IJ3Iaq8MBBEY3C0Oo4FDYIxerT0h9te09_5OtU2n4aygpnmnc-iZ8Sn1kBbQ/s1600/rss.png)no-repeat; background-position:center center; } ul#social .pinterest a { background:#963336 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3Gk7t_Nb2DE7KiJPFc-c3plZscO4EEdL3cOpc6PErXBEwlGlMbpje8RJ1bo1XTh-B4p3unb519k8iu8kZk2yfnmL7lr3DT6hjMV76_fJmJSMwDl1X_gMg9jzV6KvfViVwNgU8T4Zpj7k/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 - Now save the widget and See your blog. :D
About the Author
+Deep Sinha is a 17 year old young Blogger, currently living in West Bengal, India. He is Founder cum editor-in-chief of SkillBlogger He is not a professional. But Still he can play with Blogger Template Codes, Web Developing, Graphic Designing, Html, Css, Jquery,logo Designing and Blogger Widgets.
0 Response to "Floating Social Media Widget With Mouse Hover Effect"
Posting Komentar