Copy the following Code :
<style>
* {
box-sizing: border-box;
}
#bhero-cssanime:hover li {
opacity: 0.2;
}
#bhero-cssanime li {
-webkit-transition-property: opacity;
-webkit-transition-duration: 500ms;
-moz-transition-property: opacity;
-moz-transition-duration: 500ms;
}
#bhero-cssanime li a strong {
opacity: 0;
-webkit-transition-property: opacity, top;
-webkit-transition-duration: 300ms;
-moz-transition-property: opacity, top;
-moz-transition-duration: 300ms;
}
#bhero-cssanime li:hover {
opacity: 1;
}
#bhero-cssanime li:hover a strong {
opacity: 1;
top: -10px;
}
/* Mobile Responsive */
@media only screen and (max-width: 900px) {
ul.bhero-s1-social {
margin: 6% 5%;
float: none;
padding: 0!important;
}
li.bhero-s1 {
width: 50px;
height: 50px;
margin: 5px;
list-style: none;
display: inline-block;
}
li.bhero-s1 {
width: 55px;
height: 55px;
}
}
@media only screen and (min-width: 900px) {
li.bhero-s1 {
list-style-type: none;
width: 50px;
height: 50px;
list-style: none;
display: inline-block;
margin: 2px;
}
}
/* START TOOLTIP STYLES */
[tooltip] {
position: relative;
/* opinion 1 */
}
/* Applies to all tooltips */
[tooltip]::before,
[tooltip]::after {
text-transform: none;
/* opinion 2 */
font-size: 14px;
/* opinion 3 */
line-height: 1;
user-select: none;
pointer-events: none;
position: absolute;
display: none;
opacity: 0;
}
[tooltip]::before {
content: '';
border: 5px solid transparent;
/* opinion 4 */
z-index: 1001;
/* absurdity 1 */
}
[tooltip]::after {
content: attr(tooltip);
/* magic! */
/* most of the rest of this is opinion */
font-family: Helvetica, sans-serif;
text-align: center;
/*
Let the content set the size of the tooltips
but this will also keep them from being obnoxious
*/
min-width: 3em;
max-width: 21em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 1ch 1.5ch;
border-radius: .3ch;
box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
background: #333;
color: #fff;
z-index: 1000;
/* absurdity 2 */
}
/* Make the tooltips respond to hover */
[tooltip]:hover::before,
[tooltip]:hover::after {
display: block;
}
/* don't show empty tooltips */
[tooltip='']::before,
[tooltip='']::after {
display: none !important;
}
/* FLOW: UP */
[tooltip]:not([flow])::before,
[tooltip][flow^="up"]::before {
bottom: calc(100% + 30px);
border-bottom-width: 0;
border-top-color: #333;
}
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::after {
bottom: calc(100% + 35px);
}
[tooltip]:not([flow])::before,
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::before,
[tooltip][flow^="up"]::after {
left: 50%;
transform: translate(-50%, -20px);
}
/* FLOW: DOWN */
[tooltip][flow^="down"]::before {
top: 100%;
border-top-width: 0;
border-bottom-color: #333;
}
[tooltip][flow^="down"]::after {
top: calc(100% + 5px);
}
[tooltip][flow^="down"]::before,
[tooltip][flow^="down"]::after {
left: 50%;
transform: translate(-50%, .5em);
}
/* FLOW: LEFT */
[tooltip][flow^="left"]::before {
top: 50%;
border-right-width: 0;
border-left-color: #333;
left: calc(0em - 5px);
transform: translate(-.5em, -50%);
}
[tooltip][flow^="left"]::after {
top: 50%;
right: calc(100% + 5px);
transform: translate(-.5em, -50%);
}
/* FLOW: RIGHT */
[tooltip][flow^="right"]::before {
top: 50%;
border-left-width: 0;
border-right-color: #333;
right: calc(0em - 5px);
transform: translate(.5em, -50%);
}
[tooltip][flow^="right"]::after {
top: 50%;
left: calc(100% + 5px);
transform: translate(.5em, -50%);
}
/* KEYFRAMES */
@keyframes tooltips-vert {
to {
opacity: .9;
transform: translate(-50%, 0);
}
}
@keyframes tooltips-horz {
to {
opacity: .9;
transform: translate(0, -50%);
}
}
/* FX All The Things */
[tooltip]:not([flow]):hover::before,
[tooltip]:not([flow]):hover::after,
[tooltip][flow^="up"]:hover::before,
[tooltip][flow^="up"]:hover::after,
[tooltip][flow^="down"]:hover::before,
[tooltip][flow^="down"]:hover::after {
animation: tooltips-vert 300ms ease-out forwards;
}
[tooltip][flow^="left"]:hover::before,
[tooltip][flow^="left"]:hover::after,
[tooltip][flow^="right"]:hover::before,
[tooltip][flow^="right"]:hover::after {
animation: tooltips-horz 300ms ease-out forwards;
}
</style>
<div id="social-1">
<ul class='bhero-s1-social' id='bhero-cssanime'>
<li class='bhero-s1'>
<a href='#' target='_blank'><span tooltip="Subsribe on Facebook"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEineC2yX1csbFZUB6JsW5u5rw9VdpMtHAX52YRPB6cJ1tAxVP9pNy3RKf_DOQ4s6K5GPStfDpAaqQiewikhJh-PtD9vPXMSYrr1gj76sBZnXr0DvpsCh2qHpwn79WkXiaeY9IEPA6FxDew/s320/051-facebook.png" /></span></a>
</li>
<li class='bhero-s1'>
<a href='#' rel='nofollow' target='_blank'><span tooltip="Follow on Twitter"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijxPr82yiL-46Q68ORJhL8hWnav0HumvUHvXgV6H2e3vi_PGSCUxxmoWYta6aYTJXED8wuL6Oxpv4uBcu3GjZDZvb1qqnlFFop9TPCHxLFRa1eP2amweQeRG57pJocHKjE7WIT0h-u_7Q/s320/051-twitter.png" /></span></a>
</li>
<li class='bhero-s1'>
<a href='#' rel='nofollow' target='_blank'><span tooltip="Follow on Google+"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiguZGQVLXPmZjwqPnqpp0UTlrbNrjaODIZfrliOIHE3yHVOol19ndkV8TD6UlikTVXLd-XHT9MoEAlHdngXeNVMeFTGMP0YdUzj9RvR2EZ2Sj2dikM-gS3jA_Rr5C-chGU-pEwi7veSaw/s1600/051-google-plus.png" /></span></a>
</li>
<li class='bhero-s1'>
<a href='#' rel='nofollow' target='_blank'><span tooltip="Follow on Instagram"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU6LTTCxulYOHKg83CYefgdHGRelMWyRG-Vb-xL7SX8SwvrDcI7-OW_996z3hw6XyOeHEMPsF6ityoVLRRBBSeOitfsq1zGUqWCrRf9OrM2mpigIcwDTZ2JTuHqlCl0wCRh0AnkiWG9pw/s320/051-instagram.png" /></span></a>
</li>
<li class='bhero-s1'>
<a href='#' rel='nofollow' target='_blank'><span tooltip="Connect on Instagram"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHUm-QptbWysh4FylYhTYu5iV4h6oIgTHQGU-rP9eafop6MTy8IFEAq2ae2WTOF3iTY7ltoKILIUk6A94_i-E3VoJhxQu7noM45Qa1NwmIKn5m17fJRIEgeHODOESdpXPi1gCIMKUxgus/s320/051-linkedin.png" /></span></a>
</li>
<li class='bhero-s1'>
<a href='#' rel='nofollow' target='_blank'><span tooltip="Follow on Tumblr"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggucNLbhfXNlvk4ZrmMpXJHWpIL94SKignph0YiW5PEcFUn3ydjoenrhqEXXkeeGP27Ojx1SBRJOpIVNTbNHATm_1pKHZzbiJPLqgKe2xOCHh4HQ9ls7RGbz45FXB3hjeDQq5vtRodA8I/s320/051-tumblr.png" /></span></a>
</li>
<li class='bhero-s1'>
<a href='#' rel='nofollow' target='_blank'><span tooltip="Follow on Pinterest"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBjLGIwk6NUeoLDCwa8CGm_CUrS6fndBg0hLxg5eCSuNQc5RuMplDADqjQDQ974WGi6QxPt-g8lJTXzDGPHzou_AiZF8XVPTxZjS-ZFlI_UpPgMVPZTcCDKDt8jGLXHTtmDLtFhhYkG64/s320/051-path.png" /></span></a>
</li>
<li class='bhero-s1'>
<a href='#' rel='nofollow' target='_blank'><span tooltip="Subscribe to RSS"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_92V9iNPDqkLJFu4MpmRpmu93kMDHeCtVkbzmYBjwVxMXPIqUa8DtF7PyJUikBOnxf-fgDTJGx8xdCsQhC7z1-_lAPUeiI1v3eNrM7cw1tn9pQ0_pY0HRWHYPmGwg8fl1l8Ys_WxVqFQ/s320/051-rss.png" /></span></a>
</li>
</ul>
</div>
Thanks a lot for the effort, your work saves efforts in searching for responsive social media buttons, kindly open the subscribe option to get fresh updates from this helpful blog.
ReplyDelete