<body>
<section id="msg">
<h3>Social Icon Hover Effects</h3>
<ul class="redirect-socials">
<li><a class="twitter" href="#"><span>Twitter</span></a></li>
<li><a class="facebook" href="#"><span>Facebook</span></a></li>
<li><a class="google" href="#"><span>Google+</span></a></li>
<li><a class="dribbble" href="#"><span>Dribbble</span></a></li>
<li><a class="rss" href="#"><span>RSS</span></a></li>
</ul>
<section>
</body>
* {
font-family: "Open Sans", helvetica, arial, sans-serif;
margin: 25 auto;
}
body {
background-color: rgba(128, 128, 128, 0.66);
}
h3 {
font-family: "Merriweather", georgia, serif;
font-size: 3em;
margin: 60px auto;
color:white;
text-align: center;
padding-left:20px;
}
a {
text-decoration: none;
}
#msg {
position: relative;
z-index: 5;
text-align: center;
}
#msg .msg-wrapper {
width: 90%;
text-align: center;
margin: 0 auto;
}
#msg .direct-link a:hover {
border-bottom: 1px solid #c6463d;
}
#msg .redirect-socials li {
display: inline-block;
margin-right:0;
}
#msg .redirect-socials a {
font-size: 12px;
font-size: 1.25rem;
font-weight: bold;
display: inline-block;
padding: 1em 1em;
position: relative;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
transition: all 0.2s;
}
#msg .redirect-socials a span {
position: relative;
z-index: 5;
}
#msg .redirect-socials a::before {
content: '';
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
left: 0;
bottom: 0;
display: inline-block;
-webkit-transform: scale(1, 0);
-moz-transform: scale(1, 0);
-ms-transform: scale(1, 0);
-o-transform: scale(1, 0);
transform: scale(1, 0);
-webkit-transform-origin: 50% 100%;
-moz-transform-origin: 50% 100%;
-ms-transform-origin: 50% 100%;
-o-transform-origin: 50% 100%;
transform-origin: 50% 100%;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
transition: all 0.2s;
}
.no-touch #msg .redirect-socials a:hover {
color: #fff;
}
.no-touch #msg .redirect-socials a:hover::before {
-webkit-transform: scale(1, 1);
-moz-transform: scale(1, 1);
-ms-transform: scale(1, 1);
-o-transform: scale(1, 1);
transform: scale(1, 1);
}
#msg .redirect-socials .twitter {
color: #50abf1;
box-shadow: inset 0 -2px 0 #50abf1;
}
#msg .redirect-socials .twitter::before {
background: #50abf1;
}
#msg .redirect-socials .facebook {
color: #3b599a;
box-shadow: inset 0 -2px 0 #3b599a;
}
#msg .redirect-socials .facebook::before {
background: #3b599a;
}
#msg .redirect-socials .google {
color: #df4a32;
box-shadow: inset 0 -2px 0 #df4a32;
}
#msg .redirect-socials .google::before {
background: #df4a32;
}
#msg .redirect-socials .dribbble {
color: #ec4989;
box-shadow: inset 0 -2px 0 #ec4989;
}
#msg .redirect-socials .dribbble::before {
background: #ec4989;
}
#msg .redirect-socials .rss {
color: #e77b39;
box-shadow: inset 0 -2px 0 #e77b39;
}
#msg .redirect-socials .rss::before {
background: #e77b39;
}