A Pen by Stan Williams on CodePen.
Created
August 11, 2020 00:07
-
-
Save stanwmusic/4b7072f57867ad6c8d801b7cfc01deee to your computer and use it in GitHub Desktop.
Practicalmorphism Social Share Button
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
<head> | |
<link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class ="frame"> | |
<a href="#" class="btn" style="background: #3b5998;"> | |
<i class="fab fa-facebook-f"></i> | |
</a> | |
<a href="#" class="btn" style="background: #00acee;"> | |
<i class="fab fa-twitter"></i> | |
</a> | |
<a href="#" class="btn" style="background: #ea4c89;"> | |
<i class="fab fa-dribbble"></i> | |
</a> | |
<a href="#" class="btn" style="background:#0e76a8;"> | |
<i class="fab fa-linkedin-in"></i> | |
</a> | |
<a href="#" class="btn" style="background:#ee4056;"> | |
<i class="fab fa-get-pocket"></i> | |
</a> | |
<a href="#" class="btn" style="background:rgba(42, 52, 84, 1);"> | |
<i class="far fa-envelope"></i> | |
</a> | |
</div> | |
</body> |
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
body { | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
height: 100vh; | |
width: 100vw; | |
margin: -8px; | |
background: #e0e5ec; | |
} | |
.frame{ | |
display: flex; | |
flex-direction: row; | |
justify-content: space-around; | |
align-items: center; | |
height: 80px; | |
width: 350px; | |
position: relative; | |
box-shadow: | |
inset 2px 2px 2px 0px rgba(255,255,255,.3), | |
7px 7px 20px 0px rgba(0,0,0,.2), | |
4px 4px 5px 0px rgba(0,0,0,.1);; | |
transition:box-shadow 0.6s cubic-bezier(.79,.21,.06,.81); | |
border-radius: 10px; | |
} | |
.btn{ | |
height: 35px; | |
width: 35px; | |
border-radius: 3px; | |
background: #e0e5ec; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
-webkit-tap-highlight-color: rgba(0,0,0,0); | |
-webkit-tap-highlight-color: transparent; | |
box-shadow: | |
inset 2px 2px 2px 0px rgba(255,255,255,.3), | |
7px 7px 20px 0px rgba(0,0,0,.2), | |
4px 4px 5px 0px rgba(0,0,0,.1); | |
transition:box-shadow 0.6s cubic-bezier(.79,.21,.06,.81); | |
font-size: 16px; | |
color: #fff; | |
text-decoration: none; | |
} | |
.btn:active{ | |
box-shadow: 4px 4px 6px 0 rgba(255,255,255,.3), | |
-4px -4px 6px 0 rgba(116, 125, 136, .2), | |
inset -4px -4px 6px 0 rgba(255,255,255,.2), | |
inset 4px 4px 6px 0 rgba(0, 0, 0, .2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment