Social Buttons
Created
May 14, 2020 19:32
-
-
Save RohitBittu/fddba26863baf1f45b7b24df2c8bc370 to your computer and use it in GitHub Desktop.
Social Buttons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="social-btns"> | |
<a class="btn facebook" href="#"><i class="fa fa-facebook"></i></a> | |
<a class="btn twitter" href="#"><i class="fa fa-twitter"></i></a> | |
<a class="btn codepen" href="#"><i class="fa fa-codepen"></i></a> | |
<a class="btn instagram" href="#"><i class="fa fa-instagram"></i></a> | |
<a class="btn pinterest" href="#"><i class="fa fa-pinterest"></i></a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Thanks to Chris Deacy */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "//codepen.io/jatinn_r/pen/OJPLZLX.css"; | |
.social-btns .btn, | |
.social-btns .btn:before, | |
.social-btns .btn .fa { | |
transition: all 0.35s; | |
transition-timing-function: cubic-bezier(0.31, -0.105, 0.43, 1.59); | |
} | |
.social-btns .btn:before { | |
top: 90%; | |
left: -110%; | |
} | |
.social-btns .btn .fa { | |
-webkit-transform: scale(0.8); | |
transform: scale(0.8); | |
} | |
.social-btns .btn.facebook:before { | |
background-color: #3B5998; | |
} | |
.social-btns .btn.facebook .fa { | |
color: #3B5998; | |
} | |
.social-btns .btn.twitter:before { | |
background-color: #33CCFF; | |
} | |
.social-btns .btn.twitter .fa { | |
color: #33CCFF; | |
} | |
.social-btns .btn.codepen:before { | |
background-color: #212121; | |
} | |
.social-btns .btn.codepen .fa { | |
color: #212121; | |
} | |
.social-btns .btn.instagram:before { | |
background-color: #FE0883; | |
} | |
.social-btns .btn.instagram .fa { | |
color: #FE0883; | |
} | |
.social-btns .btn.pinterest:before { | |
background-color: #910101; | |
} | |
.social-btns .btn.pinterest .fa { | |
color: #910101; | |
} | |
.social-btns .btn:focus:before, | |
.social-btns .btn:hover:before { | |
top: -10%; | |
left: -10%; | |
} | |
.social-btns .btn:focus .fa, | |
.social-btns .btn:hover .fa { | |
color: #fff; | |
-webkit-transform: scale(1); | |
transform: scale(1); | |
} | |
.social-btns { | |
height: 90px; | |
margin: auto; | |
font-size: 0; | |
text-align: center; | |
position: absolute; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
} | |
.social-btns .btn { | |
display: inline-block; | |
background-color: #fff; | |
width: 90px; | |
height: 90px; | |
line-height: 90px; | |
margin: 0 10px; | |
text-align: center; | |
position: relative; | |
overflow: hidden; | |
border-radius: 28%; | |
box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.1); | |
opacity: 0.99; | |
} | |
.social-btns .btn:before { | |
content: ""; | |
width: 120%; | |
height: 120%; | |
position: absolute; | |
-webkit-transform: rotate(45deg); | |
transform: rotate(45deg); | |
} | |
.social-btns .btn .fa { | |
font-size: 38px; | |
vertical-align: middle; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment