JSFiddle - React, Tailwind, and code Playground

by envira

HTML

<div class="buttonwrap">
    <div class="button">
    </div>
</div>

CSS

.buttonwrap {
    border-radius: 40px;
box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(53, 53, 53, 0.7);
background: linear-gradient(#5F5E5E, #373737);
position: relative;
padding: 6px;
height: 40px;
width: 40px;
}

.button {
    transition: box-shadow 300ms cubic-bezier(0.23, 1, 0.32, 1);
box-shadow: 0 0 1px 1px rgba(92, 92, 92, 0.2), inset 0 1px 1px 1px rgba(97, 97, 97, 0.5), 0 3px 3px rgba(0, 0, 0, 0.5);
background: linear-gradient(#747474 0%, #373737 48%, #373737 52%, #4A4949 100%);
position: relative;
border-radius: 40px;
height: 40px;
width: 40px;
}