A Pen by Chandrika Deb on CodePen.
Created
July 28, 2021 04:51
-
-
Save chandrikadeb7/e39e67dec72b328137c76d1da587bc1a to your computer and use it in GitHub Desktop.
Neumorphic Control 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="socials"> | |
<div class="button"> | |
<span class="icon"> | |
<i class="fas fa-pause"></i> | |
</span> | |
</div> | |
<div class="button"> | |
<span class="icon"> | |
<i class="fas fa-backward"></i> | |
</div> | |
<div class="button"> | |
<span class="icon"> | |
<i class="fas fa-play"></i> | |
</div> | |
<div class="button"> | |
<span class="icon"> | |
<i class="fas fa-forward"></i> | |
</div> | |
<div class="button"> | |
<span class="icon"> | |
<i class="fas fa-stop"></i> | |
</div> | |
</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
body { | |
padding: 300px; | |
background: #f2f2f2; | |
} | |
.socials { | |
display: flex; | |
height: 100%; | |
justify-content: space-around; | |
align-items: center; | |
} | |
.button { | |
height: 80px; | |
width: 80px; | |
background-color: #f2f2f2; | |
border-radius: 150px; | |
box-shadow: 0px -6px 10px rgba(255, 255, 255, 1), 0px 4px 15px rgba(0, 0, 0, 0.15); | |
} | |
.button:hover { | |
box-shadow: -5px -10px 10px rgba(255, 255, 255, 1), 0px 4px 15px rgba(0, 0, 0, 0.5); | |
} | |
.button:active { | |
transform: translateY(-20px); | |
} | |
.button span.icon { | |
position: relative; | |
display: flex; | |
padding: 32px; | |
color: gray; | |
} |
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://use.fontawesome.com/releases/v5.3.1/css/all.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment