Skip to content

Instantly share code, notes, and snippets.

@chandrikadeb7
Created July 28, 2021 04:51
Show Gist options
  • Save chandrikadeb7/e39e67dec72b328137c76d1da587bc1a to your computer and use it in GitHub Desktop.
Save chandrikadeb7/e39e67dec72b328137c76d1da587bc1a to your computer and use it in GitHub Desktop.
Neumorphic Control Buttons
<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>
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;
}
<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