Hi Guys,
Once again I am here with a Interesting post. Every day we design web pages and keep places for social networking icons. In Our HTML design if we use some CSS3 and Javascript, we can make a totally different good looking fade In/Out effect Social Networking Icons with Tooltip. Here is the codes below :
HTML :
<div id="wrapper">
<h3>Connect With Us On:</h3>
<ul class="social" id="css3">
<li class="delicious">
<a href="http://www.delicious.com/"><strong>Delicious</strong></a>
</li>
<li class="digg">
<a href="http://digg.com/"><strong>Digg</strong></a>
</li>
<li class="facebook">
<a href="http://www.facebook.com/"><strong>Facebook</strong></a>
</li>
<li class="flickr">
<a href="http://www.flickr.com/"><strong>Flickr</strong></a>
</li>
<li class="linkedin">
<a href="http://www.linkedin.com/"><strong>LinkedIn</strong></a>
</li>
<li class="reddit">
<a href="http://www.reddit.com/"><strong>Reddit</strong></a>
</li>
<li class="rss">
<a href="http://feeds2.feedburner.com/marcofolio"><strong>RSS</strong></a>
</li>
<li class="twitter">
<a href="http://twitter.com/"><strong>Twitter</strong></a>
</li>
</ul>
<div style="clear:both"></div>
CSS :
body { background-image:url("../images/texture.gif");
font-family: "Segoe UI","HelveticaNeue-Light","Helvetica Neue Light",
"Helvetica Neue",Arial,Tahoma,Verdana,sans-serif; font-size:13px; }
h3 { clear:both; padding:20px 0 0 60px; }
a { color:#AF7F00; text-decoration:underline; }
a:hover { text-decoration:none; }
/* COMMON CLASSES */
.break { clear:both; }
/* WRAPPER */
#wrapper { width:800px; margin:40px auto; padding:0 0 40px 0px; }
/* SOCIAL ICONS - GENERAL */
.social { list-style:none; margin:30px auto; width:464px; }
.social li { display:inline; float:left; background-repeat:no-repeat; }
.social li a { display:block; width:48px; height:48px; padding-right:10px;
position:relative; text-decoration:none; }
.social li a strong { font-weight:normal; position:absolute;
left:20px; top:-1px;
color:#fff; padding:3px; z-index:9999;
text-shadow:1px 1px 0 rgba(0, 0, 0, 0.75);
background-color:rgba(0, 0, 0, 0.7);
-moz-border-radius:3px;
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
-webkit-border-radius:3px;
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
border-radius:3px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
li.delicious { background-image:url("../images/delicious.png"); }
li.digg { background-image:url("../images/digg.png"); }
li.facebook { background-image:url("../images/facebook.png"); }
li.flickr { background-image:url("../images/flickr.png"); }
li.linkedin { background-image:url("../images/linkedin.png"); }
li.reddit { background-image:url("../images/reddit.png"); }
li.rss { background-image:url("../images/rss.png"); }
li.twitter { background-image:url("../images/twitter.png"); }
/* SOCIAL ICONS - CSS3 */
#css3:hover li { opacity:0.2; }
#css3 li { -webkit-transition-property: opacity;
-webkit-transition-duration: 500ms;
-moz-transition-property: opacity;
-moz-transition-duration: 500ms; }
#css3 li a strong { opacity:0;
-webkit-transition-property: opacity, top;
-webkit-transition-duration: 300ms;
-moz-transition-property: opacity,
top; -moz-transition-duration: 300ms; }
#css3 li:hover { opacity:1; }
#css3 li:hover a strong { opacity:1; top:-10px; }
After that you need to add two simple Java Script files with your HTML. You can download the Java Script files and the Images with the complete source code here.
Click here for download.
Hope this will help you in your work. If you like this article then please give your valuable feedback. Thanks..
/* HTML ELEMENTS */
body { background-image:url(“../images/texture.gif”); font-family: “Segoe UI”,”HelveticaNeue-Light”,”Helvetica Neue Light”,”Helvetica Neue”,Arial,Tahoma,Verdana,sans-serif; font-size:13px; }
h3 { clear:both; padding:20px 0 0 60px; }
a { color:#AF7F00; text-decoration:underline; }
a:hover { text-decoration:none; }
/* COMMON CLASSES */
.break { clear:both; }
/* WRAPPER */
#wrapper { width:800px; margin:40px auto; padding:0 0 40px 0px; }
/* SOCIAL ICONS – GENERAL */
.social { list-style:none; margin:30px auto; width:464px; }
.social li { display:inline; float:left; background-repeat:no-repeat; }
.social li a { display:block; width:48px; height:48px; padding-right:10px; position:relative; text-decoration:none; }
.social li a strong { font-weight:normal; position:absolute; left:20px; top:-1px; color:#fff; padding:3px; z-index:9999;
text-shadow:1px 1px 0 rgba(0, 0, 0, 0.75); background-color:rgba(0, 0, 0, 0.7);
-moz-border-radius:3px; -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); -webkit-border-radius:3px; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); border-radius:3px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
li.delicious { background-image:url(“../images/delicious.png”); }
li.digg { background-image:url(“../images/digg.png”); }
li.facebook { background-image:url(“../images/facebook.png”); }
li.flickr { background-image:url(“../images/flickr.png”); }
li.linkedin { background-image:url(“../images/linkedin.png”); }
li.reddit { background-image:url(“../images/reddit.png”); }
li.rss { background-image:url(“../images/rss.png”); }
li.twitter { background-image:url(“../images/twitter.png”); }
/* SOCIAL ICONS – CSS3 */
#css3:hover li { opacity:0.2; }
#css3 li { -webkit-transition-property: opacity; -webkit-transition-duration: 500ms;
-moz-transition-property: opacity; -moz-transition-duration: 500ms; }
#css3 li a strong { opacity:0;
-webkit-transition-property: opacity, top; -webkit-transition-duration: 300ms;
-moz-transition-property: opacity, top; -moz-transition-duration: 300ms; }
#css3 li:hover { opacity:1; }
#css3 li:hover a strong { opacity:1; top:-10px; }