Skip to content

Instantly share code, notes, and snippets.

@stanwmusic
Created August 11, 2020 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stanwmusic/9882e2064afbd0e45fc6c2ba2d98b195 to your computer and use it in GitHub Desktop.
Save stanwmusic/9882e2064afbd0e45fc6c2ba2d98b195 to your computer and use it in GitHub Desktop.
Neumorphism Social Share Button
<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">
<i class="fab fa-facebook-f" style="color: #3b5998;"></i>
</a>
<a href="#" class="btn">
<i class="fab fa-twitter" style="color: #00acee;"></i>
</a>
<a href="#" class="btn">
<i class="fab fa-dribbble" style="color: #ea4c89;"></i>
</a>
<a href="#" class="btn">
<i class="fab fa-linkedin-in" style="color:#0e76a8;"></i>
</a>
<a href="#" class="btn">
<i class="fab fa-get-pocket" style="color:#ee4056;"></i>
</a>
<a href="#" class="btn">
<i class="far fa-envelope"></i>
</a>
</div>
</body>
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
margin: -8px;
background: #e0e5ec; /* background: #e0e5ec; */
}
.frame{
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
height: 80px;
width: 350px;
position: relative;
box-shadow:
-7px -7px 20px 0px #fff9,
-4px -4px 5px 0px #fff9,
7px 7px 20px 0px #0002,
4px 4px 5px 0px #0001,
inset 0px 0px 0px 0px #fff9,
inset 0px 0px 0px 0px #0001,
inset 0px 0px 0px 0px #fff9, inset 0px 0px 0px 0px #0001;
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:
-7px -7px 20px 0px #fff9,
-4px -4px 5px 0px #fff9,
7px 7px 20px 0px #0002,
4px 4px 5px 0px #0001,
inset 0px 0px 0px 0px #fff9,
inset 0px 0px 0px 0px #0001,
inset 0px 0px 0px 0px #fff9, inset 0px 0px 0px 0px #0001;
transition:box-shadow 0.6s cubic-bezier(.79,.21,.06,.81);
font-size: 16px;
color: rgba(42, 52, 84, 1);
text-decoration: none;
}
.btn:active{
box-shadow: 4px 4px 6px 0 rgba(255,255,255,.5),
-4px -4px 6px 0 rgba(116, 125, 136, .2),
inset -4px -4px 6px 0 rgba(255,255,255,.5),
inset 4px 4px 6px 0 rgba(116, 125, 136, .3);
}
@stanwmusic
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment